Forum Discussion
Afroz_Ahmad_114
Nimbostratus
Apr 26, 2014Block Website URI for certain users
Hello Experts,
We want to block a particular website URI for external users and allow for internal users. It is https based website and SSL offload is happening on F5 LTM , help is much apprecia...
Apr 26, 2014
Hi!
I'd probably create a data group list with the internal networks of the office (or external IP's of the offices) and match against that:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]
if { $uri starts_with "/rrr_i" and ![class match [IP::client_addr] equals officenetworks] } {
HTTP::respond 301 Location "https://xxx.com/rrr_e"
You can also chose to drop the packet with the drop command too
}
}
/Patrik
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