February 24, 2005

Backtracking on those trackbacks …

No sooner had I converted my site over to use WP 1.5 (after making the earlier entry about planning to do so), I got hit by one of those bits of new trackback spam – ugh! My first reaction was that perhaps the new trackback and pingback blacklisting features that I’d added to WPBlacklist weren’t working anymore due to some change in WP 1.5 (I had actually done the work before WP 1.5 was released …). I had almost gotten my development stuff ready to debug the code when I thought to go back and check on the trackback spam I’d received. Turned out that they’d come up with yet another variation on "texas holdem" – in their case, it was texas hold’em -. My initial reaction was to simply add an entry to the blacklist for the new variation and go on but then I decided to check how many entries I had in the blacklist for just the word texas and I was amazed to discover that I had over 300 entries! So I decided to come up with a regular expression which would catch all variations of texas holdem and after a little mucking around, the final masterpiece was "texas.*?hold.*?em" :p

Of course, the above may identify some benign stuff as spam as well but for the moment, I don’t care – I will deal with it when it happens :p (Oh if anybody is going to comment on this entry, you’d better not use the words texas holdem :p) I then set about deleting all the individual blacklist items which would be replaced by the regular expression and discovered that I could remove 316 items! Of course, I don’t know how many (probably all) would come back when I next update from Jay Allen’s central list but for the moment, I am happy the way things are 🙂 And the icing on the cake was just as I got done deleting all those 316 items, a new e-mail comes in saying that a comment was automatically deleted by WPBlacklist. The offender? The self-same guy with that new variation on the dreaded texas poker theme – gotcha sucker!! :p If anybody is eagerly awaiting the new WPBlacklist, I am happy enough with the way it is working at the moment (and what better way to test than in a production environment? :p) and so just have to make the necessary documentation changes, pack it all up, update the WPBlacklist page and then upload it. I promise that I’ll do that sometime tonight 🙂

Tags: Coding, Site, WordPress
Posted by Fahim at 4:26 pm   Comments (7)

7 Responses to Backtracking on those trackbacks …

Subscribe to comments with RSS

#1
Gravatar Image
Jamie Wilson 25 February 2005 at 4:05 am

Just downloaded 2.9. Great plugin. I think, however, that the line:

$url = $row->comment_author;

is meant to be:

$url = $row->comment_author_url;

right?

Also, the emails i’m getting from wpbl_notify are more or less blank. It’s not getting the globals for $url, $email, $comment, etc. Haven’t had time to look in to that yet though.

#2
Gravatar Image
Ted 25 February 2005 at 5:34 am

Thanks for your work on this, I’ve been waiting for it to get updated so I can be protected from comment spam again. 🙂

#3
Gravatar Image
paolo, grateful. 27 February 2005 at 5:45 am

Just want to say how grateful I am for this update. This is actually the first build that’s ever fully worked for me…for I’m pretty excited.

Thanks for the hard work and dedication to WP and its users.

#4
Gravatar Image
Greg 28 February 2005 at 8:32 pm

Thanks for the tip Jamie – I was wondering why all of a sudden all that spam was getting through on my site.

#5
Gravatar Image
Fahim 28 February 2005 at 8:45 pm

Sorry Greg – I did fix the problems that Jamie mentioned and put up a new version of WPBlacklist the next day but haven’t gotten around to making a new entry asking people to download it again if they’d downloaded it before the fix … I checked my site logs and it said that only 3 people had downloaded it before the fix was in and I figured that I knew all the people who did download it – guess I was wrong :p

#6
Gravatar Image
morvak 01 March 2005 at 8:41 am

Thanks for a great piece of coding and your time! My site is new, and I sit, apprehensively, wondering what to expect, but hopefully with this and other plugins I may just be alright.

#7
Gravatar Image
Tracie 21 November 2005 at 11:21 pm

So you’re not supporting this anymore? 🙁

Leave a response

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: