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" } {
switch -glob [HTTP::uri] {
"/images*" -
"/admin*" -
default {
HTTP::redirect "www.newsite.com"
}
} else {
discard
}
}1 ] was missing after the [HTTP::host]
If you can copy the error messages it may help too but should be ok now
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