手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp防范跨站点脚本攻击的的方法
asp防范跨站点脚本攻击的的方法
摘要:防范跨站点脚本攻击的的方法1.利用空格替换特殊字符%{};&+-"'()2.使用@,具体而言是将以下语句exec="insertintous...

防范跨站点脚本攻击的的方法

1.利用空格替换特殊字符%<>{};&+-"'()

2.使用@,具体而言是将以下语句

exec="insertintouser(username,psw,sex,department,phone,email,demo)values('"&username&"','"&psw&"','"&sex&"','"&department&"','"&phone&"','"&email&"','"&@demo&"')"

conn.executeexec

替换成:

exec="insertintouser(username,psw,sex,department,phone,email,demo)values('@username','@psw','@sex','@department','@phone','@email','@demo')"

conn.executeexec

【asp防范跨站点脚本攻击的的方法】相关文章:

防止网站内容被小偷采集的ASP代码

全面优化ASP应用程序的性能的方法

三种禁用FileSystemObject组件的方法

asp调用c#编制的com组件实例

asp 常用函数用法

个性验证码的制作方法

asp获取用户真实IP地址的方法

asp实现无限级分类的方法js版

随机增加网站点击的一个不错的方法 原创

asp 字符串连接数据库方法

精品推荐
分类导航