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 "; ...
kolom
Altostratus
Jan 07, 2018Try using the following:
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] contains "www.example.com")
&& ( [string tolower [HTTP::uri]] contains "/") }
{
HTTP::redirect https://www.test.com
}
}
abdullah_alshah
Nimbostratus
Jan 09, 2018many thanks brothers for the response and grate efforts.
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
