Forum Discussion
muzammil_88686
Nimbostratus
Feb 13, 2013Blocking 2 URLs and Allowing 1 URL
Dear Team,
I want to block the below URLs
www.xyz.com/cc_page
www.xyz.com
And want to allow the below URL
www.xyz.com/test_page
Could someone help m...
nathe
Cirrocumulus
Feb 13, 2013You could always use a data group too and do a class match on the contents of this in an irule. This would be useful if you wanted to add further allowed URIs.
when HTTP_REQUEST {
if { [class match [HTTP::uri] ne "allowed_uris"] } {
drop
}
}
I think in small numbers performance of class match vs switch/if isn't much of a concern but it's another option nonetheless.
Hope this helps,
N
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