google-authentication - ModSecurity 403 访问被拒绝

标签 google-authentication mod-security

当我尝试访问子目录时,日志中出现此错误:

ModSecurity: Access denied with code 403 (phase 2). Matched phrase ".profile" at ARGS:scope. [file "/etc/apache2/conf.d/modsec_vendor_configs/comodo_apache/09_Global_Other.conf"] [line "57"] [id "210580"] [rev "1"] 

该请求在 URI 中包含 .profile 单词,但我在 Google 登录范围内使用它。
是否可以通过 .htaccess 禁用它?我已经尝试过使用它:

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule> 

但它不起作用。
我尝试将其放在根 .htaccess 文件和子目录 .htaccess 文件中。

更新:
浏览器中的错误是:

Forbidden
You don't have permission to access /SUBDIR/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

最佳答案

试试这个:

 <IfModule mod_security2.c>
     SecRuleUpdateTargetById 210580 !ARGS:'scope'
</IfModule>

关于google-authentication - ModSecurity 403 访问被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52373555/

相关文章:

security - 如果未发送所需的 SSL 证书,则 modsecurity 不起作用

apache - mod_security 960015 阻止 Google 和其他好的机器人

apache - 配置错误页面以显示 modsecurity 的日志

c# - 谷歌身份验证 OWIN ASP.NET

google-cloud-storage - Google Cloud 授权在 Python 3 中不断失败 - 类型为无,预期为 ('authorized_user' 、 'service_account' 之一)

apache - 用于阻止导致多个 404 的 IP 的 mod_secure 脚本

mod-security - ModSecurity 用于 URL 白名单

android - 我该怎么做 "Authenticating Your Client with Google"?

javascript - Google Smart Lock/Google Yolo 未返回保存的密码

python - Google Adword API 使用 generate_refresh_token.py 生成刷新 token