Forum Discussion
Chris_Howell_11
Nimbostratus
Aug 17, 2006How DO I exclude an IP Address
I looked through the forum and could not find an example that would work for me.
Below is my current rule for redirection:
when HTTP_REQUEST
{
log local0. "Redirecti...
Colin_Walker_12
Aug 17, 2006Historic F5 Account
If all you're trying to do is check to be sure that the incoming request isn't from 10.0.0.1, you could use something like:
when HTTP_REQUEST {
if { not ( [IP::client_addr] eq "10.0.0.1" ) } {
log local0. "Redirection to HTTPS!"
HTTP::redirect "HTTPS://testcase.college.edu/test/"
}
}Colin
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
