Forum Discussion
Philip_L
Jul 16, 2012Nimbostratus
Add iRule to all VIPs?
Hi All, Im having an issue with Baiduspider and I would like to block them.
I have created the following irule:
when HTTP_REQUEST { if { [HTTP::header "User-Agent"] contains "Baiduspider...
hooleylist
Jul 16, 2012Cirrostratus
Hi Philip,
Which LTM version are you running? I think you'll need to write a tmsh script which only attempts to add the iRule to virtual servers with an HTTP profile.
You could start with Jason's config search example to get a list of virtual servers with an HTTP profile:
https://devcentral.f5.com/wiki/tmsh.codeshare.ashx -> https://devcentral.f5.com/wiki/TMSH.ConfigSearch.ashx
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