Forum Discussion
Chris_123510
Nimbostratus
Oct 02, 2013Blocking in F5
I am trying to set up a certian site on a webserver that runs through the LTM that will be blocked by all outside users. We will go direct to the server to access that page. Currently I am using an iRule for this website, how would I set it up to block the /Mysite/Protected?
This is my current iRule:
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/TheWeb" { SSL::disable serverside pool Webserver "/Mysite" { SSL::disable serverside pool Webserver
}
default {
pool Webserver
}
}
1 Reply
- Kevin_Stewart
Employee
Try this:
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/mysite/protected*" { drop optional: HTTP::respond 503 content "Unavailable" } "/theweb*" { SSL::disable serverside pool Webserver } "/mysite*" { SSL::disable serverside pool Webserver } default { pool Webserver } }
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