修复 mod 安全性中的规则

发布于 2024-12-23 05:13:04 字数 115 浏览 3 评论 0原文

我已经安装了 mod security 2.5.12 我收到某些 php 文件的错误 403 Forbidden 所以是假阳性 我想禁用此特定警告的规则 那么谁能告诉我,我怎样才能知道mod安全文件中这个错误的规则?

I have install mod security 2.5.12
i got the error 403 Forbidden for some php file
So it is false positive
i want to disable the rule for this perticular warning
So can any one tell me that how can i know the rule for this error in mod security file??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野却迷人 2024-12-30 05:13:04

mod_security.log 文件中写入了该行和规则。例如:

Message: Access denied with connection close (phase 2). Matched phrase "msnbot" at REQUEST_HEADERS:User-Agent. [file "/home/oscar/conf/mod_sec_default_action.conf"] [line "28"] [id "60008"]

您应该添加或修改SecAuditEngine参数以开始登录httpd.conf,其值为

SecAuditEngine 开启

,或

SecAuditEngine RelevantOnly

规则信息出现在您在 httpd.conf 的 SecAuditLog 中指定的文件中。

SecAuditLog /logs/mod_security.log

In the mod_security.log file is written the line and the rule. For example:

Message: Access denied with connection close (phase 2). Matched phrase "msnbot" at REQUEST_HEADERS:User-Agent. [file "/home/oscar/conf/mod_sec_default_action.conf"] [line "28"] [id "60008"]

You should add or modify the SecAuditEngine parameter to begin to log in httpd.conf, with the value

SecAuditEngine On

, or

SecAuditEngine RelevantOnly

The rule information appears in the file you have especified in SecAuditLog in httpd.conf.

SecAuditLog /logs/mod_security.log
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文