Skip to content

Instantly share code, notes, and snippets.

@ptasker
Last active December 25, 2015 16:49
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 ptasker/7008572 to your computer and use it in GitHub Desktop.
Save ptasker/7008572 to your computer and use it in GitHub Desktop.
WordPress admin htaccess IP restriction
Order deny,allow
Deny from all
Allow from xx.xx.xx.xx
#range would be
#Allow from xx.xx.xx.0/24
<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment