Forum Discussion
HenryW_137530
Nimbostratus
Mar 29, 2017Irule to block wildcarded urls
I am trying to configure in irule iRule to block these two wildcarded urls: accu-weather.com/widget or map.baidu.com/sdk.php
will this irule work class blockthis { "accu-weather.com/widget" "map.baidu.com/sdk.php" }
when HTTP_REQUEST { if {[class match [string tolower [HTTP::uri]] equals blockthis } { drop }
1 Reply
- Vijay_E
Cirrus
Try:
when HTTP_REQUEST { set VARIABLE [HTTP::host][string tolower [HTTP::uri]] if { [class match $VARIABLE equals blockthis] } { drop } }
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