Forum Discussion
NetworkTeam_178
Nimbostratus
Nov 04, 2016Logging for iRule isn't working?
Hello,
I want to output rejections for this iRule to a syslog server. My syntax is
when HTTP_REQUEST {
if { !(([HTTP::host] starts_with "website.co.uk") or ([HTTP::host] starts_with ";) o...
cjunior
Nacreous
Nov 04, 2016Hi, 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.Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects