Forum Discussion
Kevin_Leicht_51
Nimbostratus
Aug 14, 2012iRule not working since upgrading to 11.2
Apologies if a similar question has been asked and answered. I searched the forum but couldn't find anything. I have an irule that references a data group for blocking spiders by user-agent (I copied ...
hoolio
Cirrostratus
Aug 14, 2012It was the $:: prefix breaking the iRule on 11.x.
Adding to Niass' suggestion, you could also add your user-agent strings in lower case to the data group and then set the User-Agent header value to lower case in the iRule:
when HTTP_REQUEST {
if { [class match -- [string tolower [HTTP::header "User-Agent"]] equals UserAgentBlacklist ] } {
drop
}
}
Aaron
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