Forum Discussion
Manuel_60430
Nimbostratus
Mar 24, 2014Block a User-Agent with an iRule
Dear Community,
we have received some suspicious requests with a customized User-Agent in the HTTP header. Now the idea is to temporary block those Agents with an iRule to do some further invest...
nathe
Cirrocumulus
Mar 24, 2014Manuel,
The problem is line "if { [string tolower [HTTP::header "User-Agent"]] == "Mozilla/4.0"} { "
This will never match as you're doing a string tolower but looking for Mozilla with a capital M.
Try that.
N
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