如何使用C#删除ASP.NET中的SQL注入字符? [英] How to remove SQL injection characters in ASP.NET with C#?

查看:77
本文介绍了如何使用C#删除ASP.NET中的SQL注入字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除SQL注入字符。我希望通过正则表达式来实现。如果是这样的话,那是哪种方式或是否有其他选择。



我尝试过的事情:



尝试使用一些正则表达式来删除SQL注入字符。但不工作

I want to remove SQL injection characters. I wish to do it via Regular Expression. If so which is the way or whether any other option there.

What I have tried:

Tried some regular expression way to remove SQL injection characters. But not working

推荐答案

你可以在google搜索相同的,有关你的查询有数千个结果



如何:防止ASP.NET中的注入攻击 [ ^ ]



SQL注入攻击和一些提示如何预防他们 [ ^ ]



防止SQL注入攻击ASP.NET - 第一部分 [ ^ ]
You can search in google for same, There are thousands of result regarding your query

How To: Protect From Injection Attacks in ASP.NET[^]

SQL Injection Attacks and Some Tips on How to Prevent Them[^]

Preventing SQL Injection Attack ASP.NET - Part I[^]


这篇关于如何使用C#删除ASP.NET中的SQL注入字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆