Forum Discussion

Micros_88999's avatar
Micros_88999
Icon for Nimbostratus rankNimbostratus
Oct 16, 2014
Solved

Allow access based on full url request

Hello,   I would like to make an iRule which drop connection when the remote hits a specific url.   I did the below iRule, which doesn't work because the HTTP:path doesn't contain the full requ...
  • R_Eastman_13667's avatar
    Oct 16, 2014

    Try this:

    when HTTP_REQUEST {
        set url [HTTP::host][HTTP::uri]
        if{$url == "example.com/rest/nameservice"}
           TCP::close
    }
    
    when HTTP_RESPONSE {
        if{$url == "example.com/rest/nameservice"}
        HTTP::close
    }