Forum Discussion
F5_324021
Cirrus
Jul 24, 2017Block Specific URL from Specific Region
Hello ,
Im trying to block HTTPS request on specific URL from specific region and source IP address.
Is it possible to block specific URL from a source region?
Example we have 3 subdom...
habib_Khan
Nimbostratus
Jul 24, 2017Hi,
If your aware of what ip range or subnet you want to block you can use below irule. If geolocation wise you need to block, you need to have your LTM able to connect to Internet.
when HTTP_REQUEST {
if {[IP::addr [IP::client_addr] equals x.x.x.x/x]}{ drop } } If you want to drop IP and sepcific uri. You can use below irule.
when HTTP_REQUEST {
if {[IP::addr [IP::client_addr] equals x.x.x.x/x]}{ if {([string tolower [HTTP::uri]] contains "/xyz") || ([string tolower [HTTP::uri]] contains "/abc")|| ([string tolower [HTTP::uri]] contains "/def")}{ drop } } }
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