Forum Discussion
Forsaken_104807
Nimbostratus
Aug 05, 2010X-Forwarded-For Irule
Hi All, Hoping someone can help here... In a nut shell, I am trying to block external access to a site, but allow internal users to work. Our connections come in externally via an application firewall...
Forsaken_104807
Nimbostratus
Aug 08, 2010Thanks Aaron, your first suggestions works a treat.... I can't seem to make it work though defing a whole subnet to be allowed?
when HTTP_REQUEST {
if { not ([HTTP::header values "X-Forwarded-For"] contains 10.0.0.0/255.0.0.0 }{
HTTP::respond 200 content "Apology PageWe
are sorry, but the site you are looking for is temporarily out of service
Please
try again later.
"
}
}
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