Forum Discussion
mbamusa_59409
Oct 16, 2012Nimbostratus
Geolocation Irule
Hi All ;
i have the following irule :
when CLIENT_ACCEPTED {
if {[ whereis [IP::client_addr] country] eq US ] or [IP::addr [IP::client_addr] equals 10.7.10.1]}
...
mbamusa_59409
Nimbostratus
Hi Guys ,
the following irule works fine :
when CLIENT_ACCEPTED {
set allowed 0
if { [ class match -- [whereis [IP::client_addr] country] eq Allowed_list] or [ IP::addr [IP::client_addr] equals 10.7.10.1 ] } {
set allowed 1 }
}
when HTTP_REQUEST {
if { $allowed == 0 } {
HTTP::respond 403 content "Blocked!"}
}
i appreciate your kind support .
Regards
M. Bamusa
Naumin_Dave_144
Sep 02, 2015Nimbostratus
Hi Bamusa,
I am trying to achieve something like this only. I have one quarry for you. Can you just tell me for above Irule, how can we add country in "Allowed_list" data group?
My requirement is I want to publish one application over internet for India Users 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