Forum Discussion
axteliano_34959
Nimbostratus
Mar 23, 2018Trying to Block a http-uri with irule
Resolved:
my irule its worked after to 20 minute. i didn´t need to modified nothing. thanks alot
Hi I want to config new iRule to block URL, for example: I need to block the next url:
"23/Mar/2...
Stanislas_Piro2
Cumulonimbus
Mar 24, 2018Impressive! This code can't work and you say it's now working.
there are 2 issues in the code:
- string "/Mirada_Test-portal" can't match a string forced to lower case
- even if you remove the string tolower, the character * in the condition is not in the requested URI. it is not used as a wildcard.
try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] equals "/mirada_test-portal-fw-war-11.6.3/private/poll2.ajax" } {
drop
}
}
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