Forum Discussion
aschi
Jun 13, 2013Nimbostratus
Hi
I was able to solve it with the following entry after "when HTTP_REQUEST {" (ACA_allow_PepperHost contained the allowed Host):
if { not [class match [IP::client_addr] equals ACA_allow_PepperHost] } {
reject
}
Now I have to extend the if statement because the restriction ist just for some URI.
I would like to first just test the URI restriction.
The following didn't work:
if { not [class match [HTTP::uri] equals ACA_restrict_Pepper_URI] } {
What do I have to set as String and Value in the class?
It never matched. Any Ideas? Is it possible to use regex expression in a class?
Best Regards,
Roger