Skip to content

Instantly share code, notes, and snippets.

@fracasula
Created April 17, 2014 14:47
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 fracasula/10989061 to your computer and use it in GitHub Desktop.
Save fracasula/10989061 to your computer and use it in GitHub Desktop.
Protecting a specific location with Apache allowing only a range of IPs (and/or a domain) [whitelist IP]
<LocationMatch ^/(folder1|folder2|folder3\/child)/(.*)[\/]{0,1}feed>
Order deny,allow
Deny from all
Allow from mydomain.com 80.80.80.10/15
</LocationMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment