Forum Discussion
Brian_10565
Sep 27, 2011Nimbostratus
HTTP_REQUEST not triggered
Forgive the irule-newbie, I've searched for this and not found the answer to my problem. I am implementing a very simple irule: when HTTP_REQUEST { if { [HTTP::uri] contains "CFI...
Michael_Yates
Sep 27, 2011Nimbostratus
Hi Brain,
Try this out and see if it works for you.
I added in [string tolower[HTTP::uri]] so that your compare is in a known state (the URI Portion of a URL is case sensitive, so it is a good habit to get into to take account for it).
I also added in a logging statement, so if it finds a qualifying event it will log it into the /var/log/ltm log along with the Client IP Address.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/cfide" } {
log local0. "Blocking access to "/CFIDE". Traffic dropped from [IP::client_addr]"
drop
}
}
Hope this helps.
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