HELITG_35878
Apr 16, 2008Nimbostratus
Help with blocking referers
We're migrating from a version 4 appliance to version 9. We maintain various sites behind our loadbalancers. We want to use block refers linking to our content.
I have a defined a classed based on the sites
class live_sites {
"www.site.com"
"www.site.co.uk"
"www.site.de"
"www.site.eu"
"www.site.fr"
}
Our 4.5 the rule worked.
The version 4.5.x rule we are trying to replicate is as follows:
rule live-sites {
if (http_host == one of live_sites) {
use pool live_pool
}
else {
discard
}
}
I'm having problems trying to achieve the same results in version 9.
when HTTP_REQUEST {
if { [matchclass http::host equals $::live_sites] } {
pool live_pool
}
else {
discard
}
}
Can anyone offer any assistance?
Thanks in advance.