View Single Post
Old 07-21-2005, 10:57 AM  
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,753
htaccess will not work alone because they are calling your scripts with your own referrer. You would block your real surfers clicks if you block your own referral.

You also need something like this in all your scripts:


open(DATA, "blacklist.txt");
@blacklist = <DATA>;
close(DATA);

foreach (@blacklist) {
if ($_ =~ /$cheater/i) {
print "content-type: text/html\n\n";
print "Fuck Off Asshole!";

exit;

}


}


The $cheater value should be gotten from the cookie that was set in the browser or from any file you created matching the IP address to the referrer(cheater)


Please send any donations to [email protected] (Paypal)
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote