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...
spalande
Nacreous
Mar 24, 2014Can you try below
when HTTP_REQUEST {
if { [ string tolower [HTTP::header User-Agent]] contains "name_of_user_agent"} {
drop
log local0. "Client IP:[IP::client_addr] has been blocked with user agent :[HTTP::header User-Agent]"
}
}
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