Thursday, March 03, 2005

Rated NC-17

My logs have been inudated with 'referrer spam' in the last two months or so with about a gazillion links to porn (free! nude! camfun!), mortgage financing, jewelery sales, auctions, and the funniest (at least to me): sites selling software to spam people's referrer logs. Can you say 'busted'?

When the 'referrer spam' first popped up, I was rather curious as to why a site dedicated to Paris Hilton being nekkid 24/7 would link to my decidedly PG-13 site. Especially since I don't really like Paris Hilton when she wear clothes, let alone when she's nekkid and frolicking. And then came the fun cams -- all with names like miriam.camfun.com or anastasia.camfun.com -- and if you're thinking of clicking, don't. Seriously. Your eyes will bleed and your innocence, what's left of it after watching "Desperate Housewives" and "Something About Mary", will just completely vanish.

Also, a site called 'formula42' has nothing to do with cars.

Just so you know.

I'm trying to get my logs offline or at least password-protected to prevent the spamming, but in the meantime, I've updated my .htaccess file with the following code, that hopefully will stop some of the more 'interesting' referrer spam. The problem with this particular method versus the making my logs unavailable to the public is that I have to continually update it whenever a new porn fantasy shows up.

I saw that a lot of people were into the 'rewrite' command for the .htaccess but jemima pointed out that that would slow Apache down, especially when you start compiling a long list of blocked referrers. I also didn't block IP addresses; I figure they're kind of like email addresses and disposable. Anyway, below is a partial response to the referrer spam problem. Other people have posted blacklists of domains to block, but I'm starting to agree with j that probably the best thing to do is to take the logs offline permanently, thus depriving the spammers of their google-validation.

SetEnvIfNoCase Referer ".*milf-xxx-action.*" ref_spam=1
SetEnvIfNoCase Referer ".*mortgagerefinancingtoday.*" ref_spam=1
SetEnvIfNoCase Referer ".*onlyrealityporn.*" ref_spam=1
SetEnvIfNoCase Referer ".*sex3k.*" ref_spam=1
SetEnvIfNoCase Referer ".*formula42.*" ref_spam=1
SetEnvIfNoCase Referer ".*onlyrealityporn.*" ref_spam=1
SetEnvIfNoCase Referer ".*skin-care-companies.*" ref_spam=1
SetEnvIfNoCase Referer ".*upspiral.*" ref_spam=1
SetEnvIfNoCase Referer ".*female-porno-stars.*" ref_spam=1

< LIMIT GET POST >
order allow,deny
deny from env=ref_spam
allow from all
< /LIMIT >

'onlyrealityporn' makes me laugh; what is it otherwise? Cartoon characters? On second thought, I don't want to know.

Note: Remove the spaces in the < LIMIT > < /LIMIT > tags for this to work.

No comments: