Forum Discussion

4 Replies

  • I want to allow abc.com/abc and block URI /abc for othr URL which is on same VIP Its urgent.

     

  • Try this iRule

    when HTTP_REQUEST {
        if {!([HTTP::host] equals "abc.com") && ([HTTP::uri] equals "/abc")} {
            reject
        }
    }
    

    or this one to be more specific

    when HTTP_REQUEST {
        if {([HTTP::host] equals "xyz.com") && ([HTTP::uri] equals "/abc")} {
            reject
        }
    }
    
  • when HTTP_REQUEST { if {([HTTP::host] equals "abc.com") and ([HTTP::uri] equals "/abc")}{ return } if{([HTTP::uri] "abc")} reject }