Skip to content

Instantly share code, notes, and snippets.

@masarliev
Created February 25, 2014 21:30
Show Gist options
  • Save masarliev/9218247 to your computer and use it in GitHub Desktop.
Save masarliev/9218247 to your computer and use it in GitHub Desktop.
Deny illegal Host headers
## Deny illegal Host headers
if ($host !~* ^(mydomain.com|www.mydomain.com)$ ) {
return 444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment