Forum Discussion
Srj73
Altostratus
Apr 03, 2026ASM allow specific url from outside country of geolocation ON
Team, we have asm policy in blocking mode and Geolocation is ON. There is requirement that we have to allow specific url's for the country which is blocked by geolocation. how we can do this ?
Apr 03, 2026
Hello Srj73
As Mayur_Sutare said, you can do it with an irule
try something like this
when HTTP_REQUEST
{
set client_country [whereis [IP::client_addr] country]
switch -glob [HTTP::uri]
{
"/your/path/1" -
"/your/path/2"
{
switch $client_country
{
"COUNTRY_CODE_1" -
"COUNTRY_CODE_2"
{
ASM::geo_disable
log local0. "GEO BYPASS: Country=$client_country URI=[HTTP::uri] IP=[IP::client_addr]"
}
default
{}
}
}
default
{}
}
}
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