Error 403 Forbidden?

Avatar
  • Answered
I hadn't used my domain (Fearlessandfab) in a month. Like many domains it was attacked but is fine. I'm trying to fix the situation to allow me back in but everytime I try to fix the situation via the information the article has given me, it doesnt work. Right now this is the code I have going in my .htaccess file: RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ RewriteCond %{REMOTE_ADDR} !^74.124.210.242$ RewriteRule ^(.*)$ - [R=403,L] Am i doing something completely wrong or am I just a little bit off?
Avatar
Arn
Hello Fearlessandfab, Thanks for the question! As per the Wordpress lockdown with .htaccess article, the main thing that you're missing are the forward slashes in the IP. So it should look like the following: RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ RewriteCond %{REMOTE_ADDR} !^74\.124\.210\.242$ RewriteRule ^(.*)$ - [R=403,L] Try that out and let us know if you still require any further assistance! Regards, Arnel C.