Forum Discussion
D99
Cirrus
Jan 03, 2021Allow 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 ...
Jan 03, 2021
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
jaikumar_f5
Noctilucent
Jan 04, 2021Instead of drop i would put a forbidden or redirect to homepage.
- D99Mar 15, 2021
Cirrus
Thank you very much
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
