For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Chris_123510's avatar
Chris_123510
Icon for Nimbostratus rankNimbostratus
Oct 02, 2013

Blocking 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

  • 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
            }
        }