in reply to
blocking naughty referrers
Be aware that any scheme involving REFERER can be subverted, as it is an unverified header given by the browser. Programs using LWP as a Perl client can set arbitrary referers for each request, for example.
--
Randal L. Schwartz, Perl hacker
Comment on
Re: blocking naughty referrers
Replies are listed 'Best First'.
Re: Re: blocking naughty referrers
by
Rhandom
(Curate)
on May 14, 2001 at 19:19 UTC
However, you can use
$ENV{REMOTE_ADDR}
(the ip of the connecting client). This cannot be spoofed (although they could go and use a proxy).
my @a=qw(random brilliant braindead); print $a[rand(@a)];
[reply]
[d/l]
In Section
Seekers of Perl Wisdom