Skip to content

Instantly share code, notes, and snippets.

@mgla
Last active April 10, 2017 12:09
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 mgla/afa845580554cce648cf3b1f56af6672 to your computer and use it in GitHub Desktop.
Save mgla/afa845580554cce648cf3b1f56af6672 to your computer and use it in GitHub Desktop.
#
<Directory />
#Example..
SetEnvIF X-Forwarded-For "(,| |^)192\.168\.1\.1(,| |$)" DenyIP
SetEnvIF X-Forwarded-For "(,| |^)10\.1\.1\.1(,| |$)" DenyIP
Order allow,deny
Deny from env=DenyIP
Allow from all
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment