Forum Discussion
D99
Jan 03, 2021Cirrus
Allow URI to specific GeoLocation
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
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
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