thanks in advance everyone!#!/usr/bin/perl print "Content-type: text/html\n\n"; #if the refering agent is dumbdomain.com if ( $ENV{HTTP_REFERER} == !~ m|^http://dumbdomain.com/| ) #then redirect to anotherpage.com { print "Location: http://www.anotherpage.com\n\n"; }
Edit 2001-05-14 by mirod: added code tags
In reply to blocking naughty referrers by mishko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |