Forum Discussion
kgaigl
Cirrocumulus
Dec 15, 2022IRule to block URL/URI from Data Group
Hello, we've a VS with about 20 URLs, now I've to block Login-Sites dor the most but not all URL's, for eg: www.somesite1.org/login www.somesite2.org/member www.somesite2.org/login I'd like to p...
mihaic
MVP
Dec 15, 2022when HTTP_REQUEST {
if { ([HTTP::host] == "www.xyz.com") and ([matchclass [string tolower [HTTP::uri]] contains example_uri]) }{
HTTP::respond 403 content "You don't have authorization to view this page. Access Denied" noserver Content-Type text/html Connection Close Cache-Control no-cache
log local0. "deny URI: [HTTP::uri]"
}
}
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
