阅读:1260回复:2

采集突然出现“SQL check”卡住不动了,请问如何解决

楼主#
更多 发布于:2020-12-01 15:23

图片:QQ截图20201201152318.jpg



采集突然出现“SQL check”卡住不动了,请问如何解决
1楼#
发布于:2020-12-01 16:13
视频名称包含敏感词语,
或者采集对象视频被挂马,
才会触发安全检查。

if($querytype=='select')
 {
 $notallow1 = "[^0-9a-z@\._-]{1,}(union|sleep|benchmark|load_file|outfile)[^0-9a-z@\.-]{1,}";
 if(m_eregi($notallow1,$db_string)){exit('SQL check');}
 if(m_eregi('<script',$db_string)){exit('SQL check');}
 if(m_eregi('/script',$db_string)){exit('SQL check');}
 if(m_eregi('script>',$db_string)){exit('SQL check');}
 if(m_eregi('if:',$db_string)){exit('SQL check');}
 if(m_eregi('--',$db_string)){exit('SQL check');}
 if(m_eregi('char(',$db_string)){exit('SQL check');}
 if(m_eregi('*/',$db_string)){exit('SQL check');}
 }
如果确认采集的数据是安全的,可以删除 include/sql.class.php文件里的如上过滤代码。
但这样做以后,系统可能会被黑客攻击。请自行斟酌。
2楼#
发布于:2020-12-01 20:51
好的,谢谢,老大!
游客

返回顶部