F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

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.