Forum Discussion
Need to drop packets to specific URL
Hi Everyone,
I need to drop packet coming from client side to VS with specific URL as follows ; I wrote below irule but its not working, keep in mind https://mailarchive.ewe.com.tr/owa for example must be work !!!
when HTTP_REQUEST { if { [HTTP::host] equals"https://mailarchive.ewe.com.tr"} { drop log local0. "connection dropped from [IP::client_addr]" } }
4 Replies
Hello,
You must add if or switch condition to specify the URI you would like to block. Your current irule doesn't work.
[HTTP::host] equals "mailarchive.ewe.com.tr" and [HTTP::path] equals "/"
You can also use HTTP::uri instead of HTTP::path
- Seckin_149390
Nimbostratus
Many Thanks, it works now.
- Yann_Desmarest_
Nacreous
Hello,
You must add if or switch condition to specify the URI you would like to block. Your current irule doesn't work.
[HTTP::host] equals "mailarchive.ewe.com.tr" and [HTTP::path] equals "/"
You can also use HTTP::uri instead of HTTP::path
- Seckin_149390
Nimbostratus
Many Thanks, it works now.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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