Skip to content

Instantly share code, notes, and snippets.

@megamaced
Created October 4, 2017 14:17
Show Gist options
  • Save megamaced/7e639dab44b0d15f6eb4b7cef4d99b2f to your computer and use it in GitHub Desktop.
Save megamaced/7e639dab44b0d15f6eb4b7cef4d99b2f to your computer and use it in GitHub Desktop.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"hostname1.domain.com" -
"hostname2.domain.com" -
"hostname3.domain.com" -
default {
log local0. "[HTTP::host] not allowed"
drop
}
}
}
@megamaced
Copy link
Author

when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"hostname1.domain.com" -
"hostname2.domain.com" -
"hostname3.domain.com"
}
default {
log local0. "[HTTP::host] not allowed"
drop
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment