Created
December 5, 2014 01:21
-
-
Save mkorostoff/24ad125bf06e3984869c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Access control list. | |
# The goal of this ACL is to refuse direct apache acces to everyone other than | |
# Varnish and a list of trusted admins. IP addresses on this list may access | |
# apache directly by navigating to example.com:8000. Apache will allow POST | |
# traffic, but Varnish will not, so your site will be largely immune to SQL | |
# injection attacks that require POST access | |
################################################# | |
Deny from all | |
Allow from 127.0.0.1 | |
Allow from 123.123.123.123 | |
Allow from 231.231.231.231 | |
################################################# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment