Forum Discussion
KOR_124005
Nimbostratus
Mar 02, 2014iRule URI
Hi All, Hope your fine,
i have URL with three URi http://KOR/* >>>> VS1
http://KOR/test_cc >>>> VS2
http://KOR/Prod_cc >>>> VS3
i have...
Mar 02, 2014
If you want to restrict access to a specifi uri you can do something like this:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/test_cc/" } {
pool Pool_KOR
} else {
drop
}
}
If you want to reset the connection you can use reset instead of drop. If you want to reply with a html response you can use this instead of drop: HTTP::respond 401 Content "Access restricted."
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