Jaspreetgurm
Jul 14, 2021Altocumulus
Blocking Traffic based on Geo Location
I have requirement to block the traffic to a particular https path (Page) via iRule on WAF device in order to restrict the access of below url from all other geo location aspect Thailand country .
Can someone help on this. I have write below iRule.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "http://abc.com/job-request/" && [whereis [IP::client_addr] country] ne "TH" } {
drop
}
{
else {
#log local0. "The page is restricted"
}
}