You don't have permission to access /wp-login.php on this server.
-
I got this error when trying to log in to my site tonight:
Forbidden
You don’t have permission to access /wp-login.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I traced it down to two different areas of code – this one, which I had in the “CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE” area:
# Protect wp-login.php from Brute Force Login Attacks based on Server Protocol # All legitimate humans and bots should be using Server Protocol HTTP/1.1 RewriteCond %{REQUEST_URI} ^/wp-login\.php$ RewriteCond %{THE_REQUEST} HTTP/1\.0 RewriteRule ^(.*)$ - [F,L]
And this one, which I had in the “CUSTOM CODE BRUTE FORCE LOGIN PAGE PROTECTION” area:
# BRUTE FORCE LOGIN PAGE PROTECTION # Protects the Login page from SpamBots & Proxies # that use Server Protocol HTTP/1.0 or a blank User Agent RewriteCond %{REQUEST_URI} ^(/wp-login\.php|.*wp-login\.php.*)$ RewriteCond %{HTTP_USER_AGENT} ^$ [OR] RewriteCond %{THE_REQUEST} HTTP/1\.0$ [OR] RewriteCond %{SERVER_PROTOCOL} HTTP/1\.0$ RewriteRule ^(.*)$ - [F,L]
Is there anything I can do to fix the code, so that this doesn’t happen again?
I didn’t have any problems until tonight, though I was already logged in to the site for a few days previously, so it could have happened any time over the past few days.
Thanks a lot!
- The topic ‘You don't have permission to access /wp-login.php on this server.’ is closed to new replies.