Forum Discussion
Disable web scraping detection per geolocation?
I was wondering if it's possible to disable web scraping detection based on geolocation? We have web scrapers trying to get to our site from all over the world, however they mostly appear to be overseas from where we are based. The majority of users within our own country appear to be legit, however with web scraping just turned "on" we get quite a few false positives from genuine users within the country.
Therefore we were wondering if it is possible to disable just the web scraping portion of ASM for users who are geolocated for a particular country? We would still want ASM on to detect other potential attack signatures however so it's not as easy as just saying "disable ASM" for that geolocation.
How could we go about this? I imagine it might be an irule, but i can only find enable/disable ASM in its entirity and not particular portions of it. Would it be solvable with separate classes , with one policy containing just web scraping enabled? If so, how could we do this?
Thanks in advance
James
- JamesS_40157NimbostratusOk, i've been playing around with this and i've got the initial workings of an irule to potentially do this, but there are several things that dont work...what i've done is this:
1) Disabled the web scraping part of the policy on our default ASM policy/class, but still have it looking for attack signatures.
2) created a new policy / class with ONLY web scraping detection enabled, everything else it does not look for.
I've then applied both classes to a VIP, both classes are default apart from "security enabled". This is my first stumbling block - only the top class seems to fire. If you get through the policy for the class that is on top then it lets you through without going down to the second class.
Is this how it should behave, and am i going down the wrong track?
Thanks
- hooleylistCirrostratus...
- hooleylistCirrostratusHi James,
- Mike_MaherNimbostratusJames,
- Mike_MaherNimbostratusSo from an iRule perspective, I think something as simple this should work
- hooleylistCirrostratusMike's suggestion was along the lines of what I was thinking. If you use a datagroup make sure to remove the $:: prefix from the datagroup name in the iRule.
- JamesS_40157NimbostratusHoolio and Mike, thank you very much for the responses. Firstly, can I ask what the best way is to request an enhancement, should i raise a websupport case?
- Mike_MaherNimbostratusJames,
- Mike_MaherNimbostratusSo the forum strips the HTTP tags in the post, so you will need to do that formatting to make this work
- Mike_MaherNimbostratusSo the forum strips the HTTP tags in the post, so you will need to do that formatting to make this work. You can check out the link below to see the formatting, if you don't know how to do it.
Recent Discussions
Related Content
* 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