Forum Discussion
pratik_srivastava
Apr 24, 2024Nimbostratus
Geo Fence in ASM through irule for URI
I have ASM with Geo fence enabled where I added multiple country as denied but I want to add one URI from only one country rest all should denied for that uri /CKYC*. Apart from this uri all other ur...
- Apr 24, 2024
You should really not use iRules that you not understand, but anyway:
when HTTP_REQUEST priority 500 { if { ([string tolower [HTTP::path]] starts_with "/ckyc/") && ([whereis [IP::client_addr] country] ne "IN") } { drop } }
Juergen_Mang
MVP
You force the HTTP::uri to be lower case and try to match with a upper case string, that can not work.
pratik_srivastava
Apr 24, 2024Nimbostratus
The request is in upper case string only.
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