Forum Discussion
irule to drop a the traffic matching the specific URI
Hello ALL, I'm working on a task to implement a solution on LB for dropping the packet on LB to a VIP with a specif URI.
For example http://10.10.10.10/W
/W needs to be dropped on LB and then the request should get routed to the servers.
Could you please help me to achive this goal?
Regards, Thiyagu
Hi,
What do you mean by dropped? Stripped of the URL or the connection should be dropped?
Cheers,
Kees
- youssef1
Cumulonimbus
Hi,
I typical path block would look something like the following ( Expanding this to include different URIs using the switch command):
when HTTP_REQUEST { switch [string tolower [HTTP::path]] { "/path1" - "/path2" - "/path3" - "/w" { drop } } }
Source: https://devcentral.f5.com/questions/how-to-block-a-specific-url
Let me now if you need additional information...
Regards,
- Lee_Sutcliffe
Nacreous
I have just answered a similar question here: https://devcentral.f5.com/questions/irule-for-whitelist-under-certain-path-59705
In your case you could have an even simpler version:
when HTTP_REQUEST { if {[HTTP::uri] equals"/W"} { drop } }
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