Forum Discussion
Forsaken_104807
Nimbostratus
Aug 06, 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 09, 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.
"
}
}
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