I have installed this rule on a virtual server for a Exchange 2010 Client Access Server. I am trying to block access to OWA on this VS. Code is below:
(code)
when HTTP_REQUEST {
HTTP::enable
if {[string tolower [HTTP::uri]] eq “/owa” } {
HTTP::respond 401
}
}
(end code)
I get to the login screen but it will not let me log in. I was hoping that the HTTP::respond 401 would send a 401 error screen if the /owa URI was at the end of the URL. Am I missing something?
eq / equals is absolute, so if the HTTP::uri contains anything else (upto and including a trailing slash on the owa “/owa/”, then it would not qualify as a match.