Stopping WordPress Trackback SPAM

Spamming is a hard job. Spamming blogs is even harder. I’ll save you the colorful description of what I think of the people that do this, and as of late a particular site (universityupdate.com) has been a big thorn in my side. It’s your typical Adwords scumbag, trying to get links any way possible so someone would accidentally click on some of the ads and bring them a quarter.

So how does one get rid of this site, or perhaps any site, you don’t want trackbacks from via Wordpress? Simple, just edit your wp-trackback.php and add this somewhere towards the bottom of the script (make sure you’re not putting it inside any other if { } statements:

if (preg_match("/\buniversityupdate.com\b/i", $tb_url))
{
        wp_redirect(get_permalink($tb_id));
        exit;
}

Pretty simple. Save the file and you’re done. This can work in a number of ways, all that regexp looks for is presence of “universityupdate.com” string in the URL that the splogger is using. I don’t know why I didn’t do this sooner, its certainly faster than nuking a blog comment.

2 comments on “Stopping WordPress Trackback SPAM”

  1. vlad says:

    Have you seen the site authority for the trackback though?

    http://technorati.com/blogs/deceblog.net?reactions

9 historical pingbacks and trackbacks
  • Cum scapi de trackbackuri enervante | de ce? blog pingback

    [...] mai utila modalitatea asta, decat sa dai de atatea ori delete comment. Multumiri lui Vlad pentru [...]

  •   STOP Trackback Spam — Malaysians Abroad Blog pingback

    [...] found a great tip for bloggers on Wordpress. It teaches you how to get rid of this kind of trackback [...]

  • Splogs at Incessant Expressions pingback

    [...] site was stealing my content so I searched for something quick to fix it. I came across this post from someone having the same problem. It’s a great one-time fix, in fact, that’s just [...]

  • Theo Quast trackback

    This section contains tactics Â…...

    They are similar because they are sketchy and morally dubiousÂ…....

  • Winford Deroko trackback

    This section contains tactics Â…...

    They are similar because they are sketchy and morally dubiousÂ…....

  • laptop-security.alarmhousesystem pingback

    [...] peg out this intimidating report at http://www.vladville.com/2007/07/stopping-wordpress-trackback-spam.html about [...]

  • social-security.alarmhousesystem pingback

    [...] run across more about that here http://www.vladville.com/2007/07/stopping-wordpress-trackback-spam.html [...]

  • Cum scapi de trackbackuri enervante | de ce? blog pingback

    [...] Ctrl-S. Upload back to server. Poti bea acum o bere in cinstea lui Vlad. Daca te mai supara vreun nene cu trackbackuri urmezi pasi de mai sus din memorie sau revii aici ca [...]

  • Blog Roundup for the 4th of July 2007 :: Christopher Ross pingback

    [...] from The Taboo Topics You Need to Know When Choosing A Web Host. It was wonderful to get a lot from stopping wordpress trackback spam. Kudos To WordPress As usual 070707 is valuable. Jeff Matis for City CouncilCustom WordPress? Theme [...]

Historical discussion. New comments are closed for this post.