Last active
December 22, 2015 18:38
-
-
Save lynettechandler/6513803 to your computer and use it in GitHub Desktop.
Lock wp-admin for everyone but IP address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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