Since I started blogging in October '08, I've had to filter though a ton of trackback spam in Moveable Type. So, I decided to take it up a notch by using .htaccess to block external access to my Trackback web-service at http://mark.koli.ch/mt-tb.cgi. Of course, this means that I'm also blocking any legitimate incoming trackbacks from other bloggers, but I don't really care. Note if you visit my trackback web-service at http://mark.koli.ch/mt-tb.cgi you'll see a 403 Forbidden.
Continue reading to see my .htaccess configuration ...
<FilesMatch "mt\-tb\.cgi">
SetEnvIf Remote_Addr "^1\.0\.0\." TB_OK=1
SetEnvIf Remote_Addr "^15\.243\." TB_OK=1
Order deny,allow
Deny from all
Allow from env=TB_OK
</FilesMatch>
Trackbacks from any other IP-address are blocked with a 403 Forbidden, like you will see here. This strategy has completely eliminated all incoming trackback spam on my blog. One might argue that I'm using a big hammer to solve a small problem by blindly blocking every incoming trackback. And, you might be right. But, I took this approach because I have better things to do than to sort through hundreds of garbage trackback pings.
Enjoy!



Did you find this post helpful, or at least, interesting?