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, 2013muzammil,
That post didn't quite come out as expected. Here are my two options:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/cc_page" -
"/" { drop }
}
}
This would inherently allow test_page.
Or something friendlier perhaps:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/cc_page" -
"/" { HTTP::redirect "http://[HTTP::host]/test_page" }
}
}
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