Forum Discussion
greenasp_41938
Nimbostratus
Jun 19, 2013bypass a splash page for certain IP addresses
I would like to change the iRule below to replace the "when HTTP_request" with the "when CLIENT_ACCEPTED" section of the irule. However, I get an error when i do. I am trying to allow certain IP ad...
greenasp_41938
Nimbostratus
Jun 19, 2013Should it look something more like this?
when CLIENT_ACCEPTED priority 100 {
if {![IP::addr [IP::client_addr] equals 192.0.0.0/8]}{
pool splash_page_pool
event disable all
} else {
if { [HTTP::uri] ends_with "logo.png" } {
HTTP::respond 200 content [b64decode [class element -value 0 image_class]] "Content-Type" "image/png"
} else { if { [HTTP::uri] ends_with "image1.jpg" } {
HTTP::respond 200 content [b64decode [class element -value 0 image_class ]] "Content-Type" "image/jpg"
} else {
HTTP::respond 200 content "
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