Skip to content

Instantly share code, notes, and snippets.

@MKorostoff
Created December 5, 2014 01:21
Show Gist options
  • Save MKorostoff/24ad125bf06e3984869c to your computer and use it in GitHub Desktop.
Save MKorostoff/24ad125bf06e3984869c to your computer and use it in GitHub Desktop.
# 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