Forum Discussion
winifred_corbet
Nimbostratus
May 20, 2010allow access to URL by specific IP range - all others rejected
For a specific URL I need to allow access to URL only to our internal IP range, all other IP addresses need to be rejected.
Something along these lines, but clearly this is not correct. Can...
Michael_Yates
Nimbostratus
May 20, 2010If you need to be extremely specific you can have it check the URI as well.
when HTTP_REQUEST {
if { [HTTP::host] equals "www.website.com" and [HTTP::uri] equals "/somethingspecific/index.html" and [matchclass [IP::remote_addr] equals $::PoolOfAllowedAddresses ]) } {
pool poolofallowedservers
}
else {
reject
}
}
If you want exclusive over inclusive you can make a few modifications:
when HTTP_REQUEST {
if { [HTTP::host] equals "www.website.com" and [HTTP::uri] equals "/somethingspecific/index.html" and !([matchclass [IP::remote_addr] equals $::PoolOfAllowedAddresses ]) } {
reject
}
else {
pool poolofallowedservers
}
}
- Ahmad_Ghazal_17Dec 01, 2014
Nimbostratus
Hi, what the following line means, and what it's used for? pool poolofallowedservers - nitassDec 01, 2014
Employee
poolofallowedservers is pool name. the command does send traffic to that pool.
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
