Forum Discussion
Mike_59458
Nimbostratus
Dec 15, 2011Exchange 2010 & F5
I have a iRule to block access of OWA from outside of our enviroment using the below code.
when HTTP_REQUEST {
HTTP::enable
if {[string tolower [HTTP::uri]] eq "/owa" } {
...
hoolio
Cirrostratus
Dec 15, 2011As Michael said, you could use a 403 for this to indicate the request will never be allowed. A 401 indicates the app wants the user to present credentials for the request.
You could check for a URI which starts with /owa instead of matching /owa exactly. And you shouldn't need to call HTTP::enable unless you're disabling the HTTP filter elsewhere with HTTP::disable:
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/owa"}{
HTTP::respond 403 content {Blocked!}
}
}
Aaron
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