drewboy has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I dunno if this is CGI-related at all, but here's my problem: I run a search engine and directory of websites. Recently I added a 'Top Ten' page based on number of hits. Now certain webmasters are cheating their way up the page by adding popups to their sites therefore falsely increasing their popularity. It works in a way that each site in my search engine has its own unique ID (e.g. http://www.mysite.com/r/redirect.cgi?ID=900). When that link is visited, it adds 'hits' to their respective sites. I plan to punish these sites severely, by blocking any hits from their sites to mine. I search all over the net but couldn't find any definitive solution. I read something about .htaccess but that was only for banning certain IP's, which I also plan to implement. Please help! Thank you.

Replies are listed 'Best First'.
Re: Block certain http referrers?
by miyagawa (Chaplain) on Nov 17, 2001 at 12:12 UTC
Re: Block certain http referrers?
by giulienk (Curate) on Nov 17, 2001 at 15:59 UTC
    I don't think blocking hits based upon referer will sort any effect on these bad guys, cause they are going to circumvent your protection in a thousand ways. You can easily put up a Perl script that change HTTP Referrer, you can use a redirect to a script on another domain before loading your redirect.cgi, etc...
    Maybe counting the accesses to your redirect.cgi based upon ID is not the best way to obtain a popularity score.

    Giulio