Forum Discussion
Rajesh_Balla
Nimbostratus
Aug 17, 2016Need irule to block the traffic based on specific http parameters.
Hi
Need help in creating an irule for a VIP block android user agents. these users are causing load. need to block based on site id parameter and user agent.
To be specific a useragent with spe...
jgranieri
Nimbostratus
Aug 17, 2016there are two ways to do this. one is to use datagroups in the irule and use class match statements. in the datagroups specify the strings u want to match on. below is the straigh irule reference u can either use a pool as an action or simply add a reject statement then and default for all other actions
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] contains "/testconnect/") && ( [string tolower [HTTP::header User-Agent]] starts_with "java/" ) } {
pool _something
} else {
HTTP::respond 200 content "not allowed..."
reject
}
}
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