Forum Discussion
TheManu
Nimbostratus
Apr 19, 2010Rejecting HTTP request
Hello there,
I'm trying to reject a http request when it's containing a special string, but it doesn't work.
Please have a look at my rule:
when HTTP_REQUEST {
if {[HTTP::path] starts_with "/MyString"}
{
reject
}
}
Is it correct to use the starts_with reference?
Do I have to change the sting "/MyString"? (The string could look like this www.myurl.com/MyStringAndMore/something.html)
Is the reject command correct?
Thank you for your help.
- TheManu
Nimbostratus
Problem solved. It works like this: - hoolio
Cirrostratus
Hi Manu,
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