Skip to content

Instantly share code, notes, and snippets.

Created April 11, 2012 10:35
Show Gist options
  • Save anonymous/2358545 to your computer and use it in GitHub Desktop.
Save anonymous/2358545 to your computer and use it in GitHub Desktop.
.htaccess for wp-admin folder - by Website Defender
# Website Defender
AuthUserFile /etc/httpd/.htpasswd
AuthType Basic
AuthName “restricted”
Order Deny,Allow
Deny from all
Require valid-user
Satisfy any
# Whitelist work IP address
allow from XXX.XX.XXX.XXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment