Forum Discussion
cymru81
Nov 01, 2021Altocumulus
Filter request irule
Hi, is it possible to use an irule to block access (or redirect to a different address) if https://www.abc.com or https://www.abc.com/ was visited but still allow access to https://www.abc.com/123/ a...
spalande
Nov 03, 2021Nacreous
You can follow 2 approaches.
Neagtive Security - Allows everything, and reject what I know
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/" -
"/abc"
{
reject
}
default {
return
}
}
}
Positive Security - Rejects everything and allow only what I know
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/123*" -
"/234*"
{
return
}
default {
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