i made this:
exit if grep(($ENV{'HTTP_REFERER'} =~ m¦http?://([^/]*)home¦i);
it should do if referer url contains directory home then exit this script
but when i try debugg the script i get big time error:
syntax error at /home/public/cgi-bin/test.cgi line 125, near ");"