Forum Discussion
Net_Admin_24240
Nimbostratus
Jul 27, 2006block public access allow private
I want to block access to URL's from any public address but allow access if the client initiates the connection using a private address.
For example: block access to http://mycompany.com/De...
hoolio
Cirrostratus
Jul 31, 2006Hi,
If you want to compare just a single IP address, you should use [IP::addr [IP::remote_addr]]. If you want to test to see if a client request made from 10.10.10.10 for a URI that contains "debug" is dropped, you can use a rule like this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "debug" ] and [IP::addr [IP::remote_addr] equals 10.10.10.10 ]) } {
log local0. "client: [IP::remote_addr] requested [HTTP::host][HTTP::uri] and was dropped"
discard
}
}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
