Forum Discussion
Qasim
Cirrostratus
Oct 30, 2019IRule to Block a particular URL but allow everything else
Hi, wondering if you can help me with an Irule that basically looks at the FQDN e.g. test.abc.com and if the URL matches e.g. /absauth/service* that rquest is blocked. but everything else is allo...
Qasim
Cirrostratus
Oct 30, 2019Hi Eaa,
thanks for your swift response but if I want to add another line for example everything else should be redirected to pool : abc123.
how would that look like?
Regards,
Qasim
Oct 30, 2019
If you use pool_abc123 as default pool, you don't need else statement.
If you don't have default pool, you can use this iRule:
when HTTP_REQUEST {
if { ([HTTP::host] equals "test.abc.com") && ([string tolower [HTTP::uri]] starts_with "/absauth/service") } {
reject
} else {
pool abc123
}
}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
