Mod-security exception rule for url as parameter [closed]

可紊 提交于 2019-12-20 03:33:05

问题


I am new to mod security and was able to install it on my servers. However after its installation the website hosted is breaking up. After tracing the issue I was able to figure out that its not allowing me to pass url as a paramater in php code. eg: xyz.php?url=http://www.example.com/img/abc.jpg&param2=xyz Can there be any exceptions that can be added to modsecurity so that it allows to pass url as paramaters.

Thanking You,

Aazim


回答1:


You need to find the mod_security rule Id from the logs then add the directive below to your virtualhost section:

SecRuleRemoveById

Example:

SecRuleRemoveById 950005

Are you able to view the apache and modsec logs?




回答2:


Adding a rule to ignore that particular arg to your vhost should do it

SecRule !ARGS:url


来源:https://stackoverflow.com/questions/14215419/mod-security-exception-rule-for-url-as-parameter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!