Created
October 4, 2017 14:17
-
-
Save megamaced/7e639dab44b0d15f6eb4b7cef4d99b2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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
}
}