Forum Discussion
spud_141786
Nimbostratus
Jan 11, 2017F5 ASM - locally defined geolocation
When using Geolocation with ASM, is there any way to add locally defined geolocation data? Or, to override the F5's geolocation data?
thanks!
Stanislas_Piro2
Cumulonimbus
Jan 18, 2017Hi,
you can try this irule to unblock requests based on the geolocalisation violation and the IP address in a data group
when HTTP_REQUEST {
set disable_geolocalisation 0
if {([class match [IP::client_addr] equals "DG_Client_IP" ])} {
set disable_geolocalisation 1
} elseif {[info exists AllowedGroups]}{
set disable_geolocalisation 0
}
}
when ASM_REQUEST_DONE {
if {$disable_geolocalisation} {
if {[llength [ASM::violation names] == 1 && [lsearch -exact VIOL_GEOLOCATION [ASM::violation names]] == 1 } {
ASM::unblock
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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