Hello All,
I am hoping this is simple but I have had no training
I am looking for a rule that allows access to
www.xyx.com/something only if the request comes from a valid subnet (ie: internal) and and redirected to www.xyz.com if the request comes from anywhere else.
I will keep ploughing through the examples.
Thanks All,
George
Hi,
You can try something like this:
when HTTP_REQUEST {
if { (not([IP::addr "[IP::client_addr]/24" equals 10.10.10.0])) and ([HTTP::uri] starts_with "/something") } {
HTTP::redirect "www.xyz.com"
}
}
You have some exampls about how to manipulate IP::addr here: Click here
it contains a good example in case you have to filter multiple network ranges and IP addresses