Forum Discussion
abdullah_alshah
Nimbostratus
Jan 07, 2018blocking uri
hi,
i need to block all uri on the website with below iRule but not working fine:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "; and ($uri contains "/")} {
HTTP::redirect "; ...
Stanislas_Piro2
Cumulonimbus
Jan 07, 2018URI condition is useless as / is in every requests.
try this code
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.example.com"} {
HTTP::redirect https://www.test.com
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
