Goodbye trackbacks!
Saturday, May 3. 2014
Ok. The thing with trackbacks is, that they're used only for spam! Hate it.
Seven years ago it was said that 53% of all pings is spam. Today I'd say 100% of all pings is spam or sping. There is no point in allowing pings or trackbacks.
My blog software is Serendipity. It has following instructions for removing trackback links. Unfortunately the platform is well known and simply removing the links from HTML doesn't do the trick. The "official" word from Serendipity authors is to start using a plugin for managing spam trackbacks. Ok, since all of it is spam why bother!
This is what I put into my .htaccess:
# Deny trackbacks
RewriteCond %{REQUEST_METHOD} =POST
RewriteCond %{REQUEST_URI} =/comment.php
RewriteCond %{QUERY_STRING} type=trackback
RewriteRule .* - [F,L]
It has three rules in it to deny a POST request into comment.php having parameters type=trackback. A trackback will look like this on my Apache log:
POST /comment.php?type=trackback&entry_id=83 HTTP/1.0
Now the spammers should be gone and stay gone!