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 ...
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_f5Jan 04, 2021MVP
Instead of drop i would put a forbidden or redirect to homepage.
- D99Mar 15, 2021Cirrus
Thank you very much
- D99Mar 15, 2021Cirrus
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