03-Jan-2021 01:42
I have a requirement to allow mail.sdo.ae/ecp only to UAE and block all other locations and allow all locations access to all other urls under mail.sdo.ae
Any leads on how to achieve this using LTM policies or irules will be appreciated. Many thanks in advance
03-Jan-2021
10:06
- last edited on
04-Jun-2023
21:07
by
JimmyPackets
Hi Danish,
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/ecp" && [whereis [IP::client_addr] country] ne "AE" } {
drop
}
}
Helpful Articles:
https://clouddocs.f5.com/api/irules/whereis.html
03-Jan-2021 22:11
Instead of drop i would put a forbidden or redirect to homepage.
15-Mar-2021 01:26
Thank you very much
15-Mar-2021 01:26
Thanks a ton