Forum Discussion
Steve_87971
Mar 30, 2012Nimbostratus
Using ASM logic in iRules
Hi all,
I have a HA pair of 3900's running v10.2.3 LTM and ASM so I have the web scraping blocking capability.
I’d like to be able to identify traffic from search engines so I ca...
hooleylist
Mar 30, 2012Cirrostratus
Hi Steve,
You could try testing the following:
Put the web scraping check set for alarm and learn but not block in the ASM policy's blocking settings.
Create an iRule which checks in ASM_REQUEST_VIOLATION for ASM::violation_data's Violation list containing VIOLATION_WEB_SCRAPING_DETECTED
Insert an HTTP header in the request or modify the URI to append a query string parameter using HTTP::header or HTTP::uri
Here are a few related wiki pages:
https://devcentral.f5.com/wiki/iRules.ASM_REQUEST_VIOLATION.ashx
https://devcentral.f5.com/wiki/iRules.ASM__violation_data.ashx
http://devcentral.f5.com/wiki/iRules.http__header.ashx
If you get something working it would make a great codeshare example. Else if you get stuck add debug logging to your iRule and reply back with the iRule you're testing, details of the issue you're seeing and debug log from /var/log/ltm.
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