Error 403 Forbidden?

Category: File Management

Fearlessandfab
Asked:
2013-07-20 10:11 am EST

Hits: 1,050
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} !^74.124.210.242$
RewriteRule ^(.*)$ - [R=403,L]
</IfModule>

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.

OTHER ANSWERS

0

Arn
Staff
17,855 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!

Regards,
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!
Fearlessandfab
8 Points
2013-07-23 9:50 am EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!