简体   繁体   English

我收到错误“403 禁止访问被请求的页面”

[英]I got error ‘403 Forbidden Access is forbidden to the requested page’

Dear forum members,亲爱的论坛成员,

I have the error:我有错误:

'403 Forbidden '403 禁止

Access is forbidden to the requested page: www.goldenprincess.fr/wp-login.php?redirect_to=http%3A%2F%2Fgoldenprincess.fr%2Fwp-admin%2F&reauth=1 (port 80) '禁止访问请求的页面:www.goldenprincess.fr/wp-login.php?redirect_to=http%3A%2F%2Fgoldenprincess.fr%2Fwp-admin%2F&reauth=1 (port 80) '

This happens when I try to connect to the wordpress admin page.当我尝试连接到 wordpress 管理页面时会发生这种情况。 Then I click "Enter" and re-enter the URL and dont have this error anymore (cookies placed).然后我单击“Enter”并重新输入 URL,不再出现此错误(放置了 cookie)。

Why I have it and what should I do to solve it.为什么我有它,我应该怎么做才能解决它。

thank you very much in advance,非常感谢你提前,

Since it is normal for WordPress to encode the redirect URL in the query string like that but it gives you a 403, there is most likely some security on the server (eg ModSecurity ) that is configured to block requests like that since it is probably being mistaken for some kind of attack.由于 WordPress 在查询字符串中对重定向 URL 进行编码是正常的,但它会为您提供 403,因此服务器上很可能有一些安全性(例如ModSecurity )被配置为阻止这样的请求,因为它可能正在误认为是某种攻击。

If you have the ability to change those rules or contact your host to do so, it will be necessary unless you are okay with manually removing that portion from the URL each time you want to log in.如果您有能力更改这些规则或联系您的主机来执行此操作,则除非您同意每次要登录时从 URL 中手动删除该部分,否则这将是必要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM