Forum Discussion
D99
Cirrus
5 years agoAllow 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 ...
5 years ago
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_f55 years ago
Noctilucent
Instead of drop i would put a forbidden or redirect to homepage.
- D995 years ago
Cirrus
Thank you very much
- D995 years ago
Cirrus
Thanks a ton
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