Referring Spam. What do you do?

Hello,

I've been looking at my apache logs and I noticed A LOT of referrers from urls like the following (just to name a couple):
-> cialis . deltawebs . net
-> buyphentermine1 . blog . hr

In an attempt to put a stop to them, I've written a script that runs through my apache logs and executes "apf -d xxx.xxx.xxx.xxx [url]" (xxx.xxx.xxx.xxx being the incoming ip). This seems to work well because the frequency of bad referring urls seems to be decreasing and it is a server-wide solution.

I'm just wondering if there is a more efficient way of treating these bad referrers? I'm looking for a server-wide solution maybe based in httpd.conf - I don't like the idea of using .htaccess files because I am looking for a server-wide solution.

What do you think of the APF solution to this problem?

Thanks for your input!

Lamp

 

 

 

 

Top