rendered paste bodywhen HTTP_REQUEST {
if { [IP::remote_addr] equals "66.90.81.43" } {
if { [HTTP::host] != "agecheck.spicetv.com" } {
if { not [matchclass [IP::remote_addr] equals $::no_agecheck_ips] } {
if { not [regexp {^/legal/?$} [HTTP::path]] and not [HTTP::cookie exists "spicetv"] } {
if { not [matchclass [HTTP::header "User-Agent"] contains $::no_agecheck_agents] } {
HTTP::respond 302 Location http://agecheck.spicetv.com/agecheck/agecheck.jsp?desturl=[HTTP::host][HTTP::path]&[HTTP::query]
}
}
}
}
}
}