Forum Discussion
habib_Khan
Jul 24, 2017Nimbostratus
Hi,
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 } } }