Skip to content

Instantly share code, notes, and snippets.

@benhuson
Created May 22, 2019 10:08
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 benhuson/1ccecba1dbc36ae8688112214efc2f5d to your computer and use it in GitHub Desktop.
Save benhuson/1ccecba1dbc36ae8688112214efc2f5d to your computer and use it in GitHub Desktop.
.htaccess block IP behind load balancer
Order Deny,Allow
Deny from all
SetEnvIf X-Forwarded-For "^1\.1\.1\.1" AllowAccess
Allow from env=AllowAccess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment