Forum Discussion
Blocking an URI wildcard to a specific Hostname and using an header
Nevermind, Actually this iRULE seems to be ok !!
I used only this one on my VS and everything looks fine ,
the condition switch -glob [HTTP::path][HTTP::header Referer] is perfect in my case !!
Thanks you cjunior !!
Here the solution worked on my case:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "hostname" } {
switch -glob [HTTP::path][HTTP::header Referer] {
"*/pathA*" -
"*/pathB*" { }
default { log local0. "condition header et hostname"
reject }
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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