最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
sql通用防注入系统
时间:2022-06-24 16:04:27 编辑:袖梨 来源:一聚教程网
//防注入
| 代码如下 | 复制代码 |
| $arrfiltrate=array("update","delete","selert","drop","exec","cast","'","union"); //出错后要跳转的url,不填则默认前一页 $strgourl=""; //是否存在数组中的值 function funstringexist($strfiltrate,$arrfiltrate){ foreach ($arrfiltrate as $key=>$value){ if (eregi($value,$strfiltrate)){ return true; } } return false; } //合并$_post 和 $_get if(function_exists(array_merge)){ $arrpostandget=array_merge($http_post_vars,$http_get_vars); }else{ foreach($http_post_vars as $key=>$value){ $arrpostandget[]=$value; } foreach($http_get_vars as $key=>$value){ $arrpostandget[]=$value; } } //验证开始 foreach($arrpostandget as $key=>$value){ if (funstringexist($value,$arrfiltrate)){ echo " "; if (empty($strgourl)){ echo " "; }else{ echo " "; } echo ""; exit(); } } ?> |
|
相关文章
- UC网盘网页版直达-UC网盘电脑版极速登录 02-01
- yandex引擎官方直达入口-yandex引擎高速访问使用全指南 02-01
- 360安全浏览器极速入口-360安全浏览器在线版 02-01
- 悟空浏览器网页版官网入口-悟空浏览器最新官方网址 02-01
- 一耽女孩漫画免费下载安装正版官网-一耽女孩官方正版最新版本下载地址 02-01
- 漫蛙动漫下载安卓最新版本-漫蛙动漫官方客户端免费下载入口 02-01