Last active
August 29, 2015 14:23
-
-
Save rickrduncan/9d7c37cd199c4157e2fc to your computer and use it in GitHub Desktop.
Limit Access to wp-admin by 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
# BEGIN Allow/Deny Access to WP-LOGIN | |
<Files wp-login.php> | |
# set up rule order | |
order deny,allow | |
# default deny | |
deny from all | |
# Add additional IPs for access below: | |
# YOUR PLACE OF BUSINESS | |
allow from xxx.xxx.xxx.xxx | |
allow from xxx.xxx.xxx.xxx | |
allow from xxx.xxx.xxx.xxx | |
# YOUR HOME IP LIST | |
allow from xxx.xxx.xxx.xxx | |
# End of additional IPs | |
errordocument 401 default | |
errordocument 403 default | |
errordocument 404 default | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment