Forum Discussion
David_Ratta_104
Nimbostratus
Apr 29, 2009Block request to uri
I need assistance with creating an iRule to drop requests which are sent to a specific uri. I understand that I could use the else statement to redirect to page which displays a 404 or something similar but in this case I simply want to drop the requests. How would I define the action "drop."
rule drop_admin {
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/admin"
} else {
Thank you in advance.
1 Reply
- dennypayne
Employee
Hi,
You can use 'reject' or 'discard' depending on whether or not you want a reset sent to the client or you want the LTM to just silently drop the connection.
Denny
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
