asp防范跨站點腳本攻擊的的方法
更新時間:2008年01月14日 15:48:42 作者:
asp防范跨站點腳本攻擊的的方法
防范跨站點腳本攻擊的的方法
1.利用 空格 替換特殊字符 % < > { } ; & + - " ' ( )
2.使用@,具體而言是將以下語句
exec="insert into user(username,psw,sex,department,phone,email,demo) values('"&username&"','"&psw&"','"&sex&"','"&department&"','"&phone&"','"&email&"','"&@demo&"')"
conn.execute exec
替換成:
exec="insert into user(username,psw,sex,department,phone,email,demo) values('@username','@psw','@sex','@department','@phone','@email','@demo')"
conn.execute exec
1.利用 空格 替換特殊字符 % < > { } ; & + - " ' ( )
2.使用@,具體而言是將以下語句
exec="insert into user(username,psw,sex,department,phone,email,demo) values('"&username&"','"&psw&"','"&sex&"','"&department&"','"&phone&"','"&email&"','"&@demo&"')"
conn.execute exec
替換成:
exec="insert into user(username,psw,sex,department,phone,email,demo) values('@username','@psw','@sex','@department','@phone','@email','@demo')"
conn.execute exec
相關(guān)文章
asp簡單生成靜態(tài)的方法(模板標(biāo)簽替換)
asp簡單生成靜態(tài)的方法,今天看了詞典工具里面的代碼,比較簡單,需要的朋友可以參考下。2011-03-03ScriptHtml 函數(shù)之過濾html標(biāo)記的asp代碼
ScriptHtml 函數(shù)之過濾html標(biāo)記的asp代碼...2007-09-09ASP下通過Adodb.Stream實現(xiàn)多線程下載大文件
這篇文章主要介紹了ASP下通過Adodb.Stream實現(xiàn)多線程下載大文件,需要的朋友可以參考下2020-08-08asp實現(xiàn)excel中的數(shù)據(jù)導(dǎo)入數(shù)據(jù)庫
本文給大家匯總介紹了使用asp實現(xiàn)將Excel中數(shù)據(jù)導(dǎo)入到數(shù)據(jù)庫中的方法,需要的朋友可以參考一下2015-09-09