Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickrduncan/9d7c37cd199c4157e2fc to your computer and use it in GitHub Desktop.
Save rickrduncan/9d7c37cd199c4157e2fc to your computer and use it in GitHub Desktop.
Limit Access to wp-admin by IP Address
# 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