Forum Discussion
Micros_88999
Nimbostratus
Oct 16, 2014Allow access based on full url request
Hello,
I would like to make an iRule which drop connection when the remote hits a specific url.
I did the below iRule, which doesn't work because the HTTP:path doesn't contain the full requ...
- Oct 16, 2014
Try this:
when HTTP_REQUEST { set url [HTTP::host][HTTP::uri] if{$url == "example.com/rest/nameservice"} TCP::close } when HTTP_RESPONSE { if{$url == "example.com/rest/nameservice"} HTTP::close }
R_Eastman_13667
Oct 16, 2014Historic F5 Account
Try this:
when HTTP_REQUEST {
set url [HTTP::host][HTTP::uri]
if{$url == "example.com/rest/nameservice"}
TCP::close
}
when HTTP_RESPONSE {
if{$url == "example.com/rest/nameservice"}
HTTP::close
}
Micros_88999
Nimbostratus
Oct 17, 2014ok thanks it is working
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