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 can tag the URI sent to my IIS application and log an additional value for reporting purposes.
As ASM can identify known robots, is it possible to reference this logic from an iRule?
I won’t embarrass myself putting up a clumsy iRule but in English, this is what I want:
Client connects to VS
iRule fires
iRule uses ASM engine to see whether this is a search engine
(ASM checks user-agent and IP address as per web scraping technique)
ASM returns yes/no for search engine
If yes, iRule adds a variable to the URI for the application to pick-up. If no, iRule completes with no action taken.
Has anyone ever tried to do something like this?
Cheers, Steve