mishko has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: blocking naughty referrers
by merlyn (Sage) on May 14, 2001 at 10:14 UTC | |
by Rhandom (Curate) on May 14, 2001 at 19:19 UTC | |
|
(dkubb) Re: (2) blocking naughty referrers
by dkubb (Deacon) on May 14, 2001 at 10:21 UTC | |
|
Re: blocking naughty referrers
by snafu (Chaplain) on May 14, 2001 at 09:41 UTC | |
by dws (Chancellor) on May 14, 2001 at 10:12 UTC | |
by snafu (Chaplain) on May 14, 2001 at 19:38 UTC | |
by mishko (Initiate) on May 15, 2001 at 05:09 UTC | |
by dws (Chancellor) on May 15, 2001 at 05:21 UTC | |
|
Re: blocking naughty referrers
by Hero Zzyzzx (Curate) on May 14, 2001 at 22:56 UTC | |
by mishko (Initiate) on May 15, 2001 at 05:06 UTC |