Forum Moderators: phranque
Have any of you had to deal with this kind of crap before? How do you handle it?
Just a few ideas...
Jim
Is this something authorities would get into? I'm fairly sure that the first ip address this guy was using is actually a permanent ip (cable/dsl). Unfortunately, it traces to the uk, and I'm in the US.
Bullet-proff your site is the best thing you can do!
If you want your scripts to only be run from your site, put this near the very top of the script, so it is the first thing done:
@referers = ("your.domain.name" , "your.IP.add.ress" );
# Check the referer.
check_refer();
Then, add this near the bottom, the check referer sub routine:
sub check_refer {
if ($ENV{"HTTP_REFERER"}) {
foreach $referer (@referers) {
if ($ENV{"HTTP_REFERER"} =~ m¦https?://([^/]*)$referer¦i) {
$check_referer = "1";
last;
}
}
}
else {
$check_referer = "1";
}
if ($check_referer != 1) {
END;
}
}
############### END OF CODE
Good Luck
dave
YMMV
dave