Forum Discussion
cjunior
Nov 04, 2016Nacreous
Hi, What about doing this way?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"website.co.uk*" -
"www.website.co.uk*" -
"backup.mywebsite.co.uk*" -
"www.backup.mywebsite.co.uk*" {
nothing to do
}
default {
log local0. "blocked [HTTP::header "User-Agent"] requesting [HTTP::host][HTTP::uri]"
discard
}
}
}
It works for you? I hope so.
Regards.