Forum Discussion
Geo Policy for Spacific URL
Using ASM policy with GEO base policy and working fine. need another GEO Base for a specific page URL within site & within same ASM Policy. any suggestion.
3 Replies
- Michael_Everet1Historic F5 Account
As you know, the Geo-filtering is policy wide. So, two options:
-
You can create a separate policy for this URL, and use iRule/TMOS policy to switch between the policies. Obviously, this requires additional work of maintaining two policies, but would be able to meet this requirement.
-
You can create a custom violation (assuming 11.5 or higher), and then use an iRule to inspect the specific URL, compare it to the Geo's you want for this URL, and if not in allowed list use the iRule to raise the custom violation.
Some resources: https://devcentral.f5.com/wiki/iRules.ASM__raise.ashx ; https://support.f5.com/kb/en-us/products/big-ip_asm/manuals/product/asm-implementations-11-5-0/38.html
- Dinesh_Pandey
Nimbostratus
I will test & let you know.
-
- Dinesh_Pandey
Nimbostratus
Hi, I have test with Irule but getting issue, Now i achieve to redirect different ASM policy by Creating local traffic policy rules for ASM, Local Traffic > Policies select local traffic policy & Create rule for specific Path.
Thanks Team for support.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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