Forum Discussion
Domel_163525
Nimbostratus
Nov 30, 2015How to create a Policy to block websites
Hi Guys,
Question to ask.
I have a VS configured and accessible externally on my F5. An A record has been crated of X.X.X.X to www.mydomain.co.uk and that works perfectly fine.
The pro...
Stanislas_Piro2
Cumulonimbus
Dec 01, 2015There is a "how to format" link on the top right corner...
I don't see any error on the code:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/owa" } {
HTTP::respond 301 Location "https://mynewurl.co.uk"
} elseif { [ class match [string tolower [HTTP::uri]] contains web-exchange-external-datagroup ] } {
return
} else { drop}
}But in your first request, you wanted to do it with a policy...
you can create a local traffic policy to do the same:
- requires : http
- controls : forwarding
- Strategy : first-match
- rule 1:
- condition : http-uri path starts_with /owa
- action : http-reply redirect Location : "https://mynewurl.co.uk"
- rule 2:
- condition : http-uri path starts_with /autodiscovery /etc ...
- action : none
- rule 3:
- condition : none
- action : forward reset
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