Adipex to Zyban
Posted on 10.03.05 by lucia @ 10:02 am

I was surfing the political blogs, and I noticed this caution at next to comments at Ampersand’s Alas a blog.

NOTE: Due to a deluge of spam, comments using the words POKER or HOLDEM or VIAGRA or PHENTERMINE will be automatically deleted. Please be careful to avoid these words!

Everyone hates comment spam and uses different methods to minimize it. Alas a Blog evidently uses Wordpress’s default spam filtering to automatically delete comments containing “bad words” — like “poker”. I suspect Amp is listing only a few words he autodeletes. After all, the full list of “bad words” runs from “Adipex” to “Zyban”.

My blog runs on Wordpress, so I could use that method too. But, I don’t. I moderate comments containing those words, but I don’t auto delete them. That lets me permit human visitors to enter what they want– but I do reserve the right to delete comments.

Still, I do a lot of other things that prevent spam. It’s just that in my case, I try to do things to recognize and turn back spam bots so they never get far enough to leave comments containing these terms.

My front line of spam control is a set of .htaccess files. I can use these because my site runs on an Apache server. I install some at the top of my site directory, and others in certain sub-folders. For the benefit of others, here’s the chunk of the .htaccess file I use to keep a huge number of poker, pharmaceutical and porn spammers out of my site. This is bit of code is contained in the .htaccess file installed at the top of my site:

.htaccess

Do I do other things?

My full htaccess file also includes a list of bad user agents. But, I’m finding very little spam is blocked by that list. The current banes of my existence are referrer and trackback spam. The portion of the htaccess file I provide above weeds out lots of bad referrers.

I also run Referrer Karma which eliminates the referrer spam not caught by my htaccess file. I like ReferrerKarma, but I need to caution users that it seems to identify many web based email referrers and a number of craft forums as spam. If you use Referrer Karma, be sure to learn how to find the Spam Karma logs and black list table. Check regularly to make sure good referrers haven’t been blacklisted; if they have, add these urls to your SpamKarma whitelist.txt file. Also, for reasons I will explain in a future article, be sure to add your own site and the address of whatever host you visit when examining your site statistics.

But, there’s more! I also run Bad Behavior; it does a wonderful job eliminating most trackback spam. HashCash does a wonderful job preventing spammers from entering comments (but use with caution if you are concerned about preventing comments from blind persons. )

Is there a risk to using htaccess? Yes. If there is a typo in your file, your entire site will not load. I created a directory containing one page to test .htaccess files after editing. I load the new .htacess file to that folder, and check whether the page loads. If the new htaccess file passes that test, I load the edited file to the top directory of my site.

Of course, there is another risk. Some URLs containing the word “poker” may actually be knitting sites directing knitters here. I might lose traffic.

I’m not going to worry about that risk.


Please leave comments! 2 Comments

2 Comments »

  1. I installed Referrer Karma, and I”m still getting a bit of Referrer spam. But, not as bad as before. I’m not sure I care overly much, given that I don’t display my referrer information anywhere on my blog.

    Now, comment spam, I’ve had almost none since switching to WordPress. It’s very odd – my MT blog, at the same address, was hit continually, and I’ve had two. Both caught by Spam Karma.

    Comment by Gail — 10/3/2005 @ 1:40 pm

  2. The main reason I hate referrer spam is it just fills up my logs at Cpanel. I got sick of it the month I looked at my logs and saw 20% of the hits were from “AndrewSaluk.com” and 10% were from Genaholics etc.

    I publish referrers at the bottom of my site, but I edited an availabe free program so that it won’t show until I approve it. So, spammy referrers don’t get posted. It would be bad enough to post a poker referrer, but a hot link to porn would be horrific!

    Comment by lucia — 10/3/2005 @ 1:48 pm

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)



Previous posts: ( Sleeveless Aran | Home | Knit Sleeve Top Down.)
 

Lucia Liljegren: Copyright 2005-2007 Rights to all site content including knitting patterns, generators and haikus reserved.

today's page