Forum Discussion
Sep 13, 2007
The only problem I see is the embedded quotes in your string. You can either escape them with backslashes "...\"..." or use single quotes which will work with javascript as well. You can also simplify it a bit to elimiate the else clause though.
This should work for you:
when HTTP_REQUEST
{
if { ! ([string tolower [HTTP::header value Referer]] contains "abc.def.com") } {
HTTP::respond 200 content " "
}
}
-Joe