Forum Discussion
Mike_59458
Dec 15, 2011Nimbostratus
Exchange 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" } {
HTTP::respond 401
}
}
What we are seeing is repeated login screens. What we would like to see is a unauthorized or unavailable error message come up. What do I need to change to get a error message to pop up. F5s are running 10.2.3 OS.
2 Replies
Sort By
- Hi Mike,
- As 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.
when HTTP_REQUEST { if {[string tolower [HTTP::uri]] starts_with "/owa"}{ HTTP::respond 403 content {Blocked!} } }
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