Forum Discussion
Nuruddin_Ahmed_
Cirrostratus
Jun 12, 2016URL Restriction Best Way
Hi,
I have hosted one URL for our company on F5 - xyz.com, due to security audits, i have been asked to allow only specific paths, like -
xyz.com/ucc/xyz/mnn
xyz.com/abc/nuu/ooo
xyz.com/ab...
Vijay_E
Cirrus
Jun 12, 2016when HTTP_REQUEST {
set URI [string tolower[HTTP::uri]]
if { not ([class match $URI eq CLASS_ALLOWED_URI]) } {
discard
}
}
You would have to create a data-group and name it as CLASS_ALLOWED_URI (or anything else you want). The data-group will contain the list of allowed URI. The iRule uses reverse-logic and drops all requests that doesn't match the allowed URI list.
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