php防注入--sql
来源:互联网 发布:php cli argv 编辑:程序博客网 时间:2024/06/10 19:02
//防SQL注入function check_sql($word){$words = array();$words[] = "add";$words[] = "count";$words[] = "create";$words[] = "delete";$words[] = "drop";$words[] = "from";$words[] = "grant";$words[] = "insert";$words[] = "truncate";$words[] = "update";$words[] = "use";$words[] = "like";$words[] = "or";$words[] = "cas";$words[] = "rename";$words[] = "alter";$words[] = "modify";$words[] = "select";$words[] = "join";$words[] = "union";$words[] = "where";$words[] = "and";$words[] = "execute"; $words[] = "chr"; $words[] = "mid"; $words[] = "master"; $words[] = "truncate"; $words[] = "char";$w = strtolower($word);if(stristr($w,'--')){return '';}if(preg_match("/[\(\)=\'\"]/",$w)){foreach($words as $t){if(preg_match("/$t\b/",$w)){return '';}}}return $word;}
0 0
- PHP SQL防注入
- php sql 防注入
- php防sql注入
- php 防sql注入?
- php防sql注入
- php防注入--sql
- php防sql注入
- php防sql注入
- php防sql注入
- PHP防SQL注入处理
- PHP防SQL注入攻击
- PHP防SQL注入记录
- PHP防SQL注入的方法
- php防sql注入过滤特殊字符
- PHP防SQL注入的方法
- mysql防sql注入的php函数
- PHP的几个防SQL注入函数
- 【PHP】防 SQL 注入和开发安全
- Go语言_Go中的JSON格式
- 删除CentOS更新后的旧内核
- 6. ZigZag Conversion
- JSON
- 唐巧总结的40个国人iOS技术博客
- php防注入--sql
- URLDeconder和URLEncoder的编码与解码
- 通用查询功能第三版EasyQueryVer3使用说明
- SQL Server自增长列插入指定值 -- SET IDENTITY_INSERT ON|OFF
- 计蒜客课程数据结构(顺序表)
- 英文,数字和中文混合的彩色验证码实现
- 打开Word文件并显示在RichtTextBox上
- android alterdialog 背景和大小问题
- SQL语句中SELECT语句的执行顺序