Deny access to wp-admin from everyone but yourself

Find the wp-admin directory of your site and put a .htaccess file in there.  Create it as root and just put 3 lines in it and you’re done.

order deny,allow
deny from all
allow from 72.14.205.100

Change 72.14.205.100 to your ip address. If you’re behind a router of some time, go to a website that tells you what ip you’re browsing from, like whatismyip.com and put the ip address it says you’re coming from in there.  If your ip craptastic-ly changes a lot, try just 3 octets, leaving the last one out.  For example, if your ip is 72.14.205.100 today, you could make the last line just:

allow from 72.14.205

Doing it this way allows 253 other ip’s besides yours to access that folder at any given time, but that’s an improvement from a theoretical 4,294,967,295 others for ipv4 right?

Posted by admica   @   6 December 2008

Related Posts

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Name

Email

Website

Previous Post
« Remove lines in your php files that reveal your WordPress version
Next Post
news reporting done zoo animal dung throwing style »
Powered by Wordpress   |   Lunated designed by ZenVerse