Forum Discussion
Shay_Ben-David1
Nimbostratus
Mar 25, 2008block access to domain
is there a way to filter access only to the domain root like www.mysite.com, and allow everything else, in order to allow users bookmarks and uri with specific url+uri
my irule is :
...
Nicolas_Menant
Employee
Mar 25, 2008when HTTP_REQUEST {
if { [string tolower [HTTP::host] equals "www.mysite.com" } {
if { NOT ([HTTP::uri] contains "images")} {
HTTP::redirect "www.newsite.com"
}
}
}
Here we redirect all users requesting www.mysite.com but not user where the uri contains images.
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