Created
April 17, 2014 14:47
-
-
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]
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
<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