Forum Discussion
iRule to Block /Redirect URL
Hello all,
Need some help with iRules. In short, we various URL’s and want to control access to them:
Blocked or redirected to a F5 Maintenance page: · URL1: AAA.BBB.com · URL2: AAA.BBB.com/xxx/Path01 · URL3: AAA.BBB.com/xxx/Path04
Allow pass-through to the URL: · URL4: AAA.BBB.com/xxx/Path02 · URL5: AAA.BBB.com/xxx/Path03
Can this be done by having a 1 rule that blocks everything except URL’s in the allowed list? If not, how can we get this working?
Thanks, RI
1 Reply
- nathe
Cirrocumulus
See a similar post here: https://devcentral.f5.com/questions/irule-to-allow-only-certain-uris
Add /xxx/Path02 and /xxx/Path03 to the data group of allowed URIs. This example just drops the connection if the uri is not in the data group.
Hope this is a good starting point.
N
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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