Skip to content

Instantly share code, notes, and snippets.

@lynettechandler
Last active December 22, 2015 18:38
Show Gist options
  • Save lynettechandler/6513803 to your computer and use it in GitHub Desktop.
Save lynettechandler/6513803 to your computer and use it in GitHub Desktop.
Lock wp-admin for everyone but IP address
#Put this in .htaccess inside wp-admin folder
Order deny,allow
Deny from all
allow from zzz.zzz.zzz.zzz
# Put this in main WP folder's .htaccess to limit access to wp-login.php
<Files wp-login.php>
Order deny,allow
Deny from all
allow from zzz.zzz.zzz.zzz
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment