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

See a similar post here: DevCentral - An F5 Technical Community

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