Forum Discussion
vishnu1994
Altostratus
Sep 20, 2022Need help with irule
Hi I have an application xyz.com and we need only certain URI to be accessable and if the user directly go to xyz.com they need to get URL NOT ACCESSIBLE and users only allowed to go to xyz.com/pa...
- Sep 20, 2022
A simple switch might look like this:
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/page1" - "/page2" { } default { HTTP::respond 400 content "URL NOT ACCESSIBLE" "Connection" "close" } } }
Kevin_Stewart
Employee
Sep 20, 2022A simple switch might look like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/page1" -
"/page2" { }
default {
HTTP::respond 400 content "URL NOT ACCESSIBLE" "Connection" "close"
}
}
}
vishnu1994
Altostratus
Sep 21, 2022Hello
This I rule is blocking the URI's even with the /page1 and /page2
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