Monthly archives: January 2015

Filtering WordPress Spam

Posted on January 5, 2015 Comments

I have gotten a ridiculous amount of spam since setting up this blog. I know hardly anyone is reading it since it’s just a personal; weblog, but the spammers have hopped on it like flies on honey so I get at least 15 spam comments per day or so. I did not bother to set up the Akismet anti-spam plugin in wordpress itself, so it’s my fault for being lazy.

However, I found a pretty easy way to block 95% of spam without it. This is the list I’m using, and as of this moment in the last month I have caught 535 spam comments using it, and only 30 of them have missed. I’ve provided my entire list below, some of it is not mine and I gathered it from others around the internet:

[/url]
-online
4u
adderall
adipex
advicer
ambien
baccarat
baccarrat
blackjack
bllogspot
booker
byob
car-rental-e-site
car-rentals-e-site
carisoprodol
casino
casinos
chatroom
cialis
citalopram
clomid
coolcoolhu
coolhu
credit-card-debt
credit-report-4u
cwas
cyclen
cyclobenzaprine
cymbalta
dating-e-site
day-trading
debt-consolidation
debt-consolidation-consultant
discreetordering
doxycycline
duty-free
dutyfree
ephedra
equityloans
facial
femdom
fetish
fioricet
flowers-leading-site
freenet
freenet-shopping
fucking
gambling
gambling-
hair-loss
health-insurancedeals-4u
holdem
holdempoker
holdemsoftware
holdemtexasturbowilson
homeequityloans
homefinance
hotel-dealse-site
hotele-site
hotelse-site
hydrocodone
incest
insurance-quotesdeals-4u
insurancedeals-4u
jrcreations
levitra
lexapro
lipitor
lorazepam
macinstruct
mortgage-4-u
mortgagequotes
online-gambling
onlinegambling-4u
ottawavalleyag
ownsthis
oxycodone
oxycontin
palm-texas-holdem-game
paxil
penis
percocet
pharmacy
phentermine
poker
poker-chip
porn
poze
propecia
pussy
rental-car-e-site
ringtone
ringtones
roulette 
sex
shemale
shoes
slot-machine
texas holdem
texas-holdem
thorcarlson
top-e-site
top-site
tramadol
trim-spa
ultram
valeofglamorganconservatives
valium
valtrex
viagra
vioxx
xanax
zolus

The most important part of this list is the very top one that I added myself: [/url], which is the end tag of a link BBCode. Once I added this it filtered so much crap.  This catches them because so many spam posts include it. Example:

in the distant past a waffle golf club enlightened a great technology: an enhanced press for better play.
[url=http://www.*.tv/aaclindex.html]http://www.*.tv/aaclindex.html[/url]

Spammers are almost always trying to insert links and rarely does a user with a valid post on here do this, so the [/url] filter works for me. Though, your experience may vary. The ones it doesn’t catch look somewhat like this:

You post very interesting articles here. Your website deserves much more visitors.
It can go viral if you give it initial boost, i know very useful tool that can help you.

I think the goal of replies like this without links are to get bloggers to take the bait and approve them – that way they can come back and spam more links. A few of these though is really not a big deal when I’m catching hundreds of others.

I’ll update this post now and then as I refine my list.