InMotion Hosting Support Center

Error 403 Forbidden?

Category: File Management

2013-07-20 10:11 am EST

Hits: 1,607
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:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^$
RewriteRule ^(.*)$ - [R=403,L]

Am i doing something completely wrong or am I just a little bit off?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



40,993 Points
2013-07-22 12:46 pm EST
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!

Arnel C.

You must login before you can post a comment about this answer.

thank you so much this helped solve my issue almost instantly!
8 Points
2013-07-23 9:50 am EST
Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!