Forum Discussion
ChadBigIP_14663
Jan 31, 2013Nimbostratus
How do I get this working, or setup a DataGroup called "bad-domains" - to be able to block domains and reject or deny their access...
when HTTP_REQUEST {
if { [HTTP::host] equals "www.mmadsgadget.com" } {
if { [HTTP::host] equals "mmadsgadget.com" } {
if { [HTTP::host] equals "www.contextweb.com" } {
if { [HTTP::host] equals "tag.contextweb.com" } {
if { [HTTP::host] equals "contextweb.com" } {
send a TCP reset
reject
alternatively, redirect somewhere else
HTTP::redirect "http://www.somedomainyoufindentertaining.com"
}
}
Would this work to block these? I would rather have the domains in a data group...
see post below: