Forum Discussion
yuanqiang_22112
Nimbostratus
Nov 22, 2016http 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!
Leonardo_Accors
Cirrus
Nov 22, 2016Hi 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects