Forum Discussion

yuanqiang_22112's avatar
yuanqiang_22112
Icon for Nimbostratus rankNimbostratus
Nov 22, 2016

http request about ip limit

Hi When the ip equal 1.202.88.110 ,it can visit the url "; ,otherwise reject. How can use irules to realize this. Thanks!

 

1 Reply

  • Hi yuanqiang, I guess that is the FQDN of a VS. You have to attach this iRule to the VS:

     

    when HTTP_REQUEST {

     

    if { ([HTTP::host] eq ";) and ([HTTP::uri] starts_with "/docs") }{

     

    if { not ([IP::client_addr] equals "1.202.88.110" ) } {

     

    reject

     

    }

     

    }

     

    }

     

     

    only IP 1.202.88.110 can access to /docs* uri.