Damn that YaBB!

I have recently been using a 404 notifier plugin, however the links to mark a comment as spam don’t work. So, I resorted to doing it the PHP and Apache way.
All the spam was coming from bots trying to access a YaBB script. This was located (or so they thought) at /cgi-bin/yabb2/YaBB.pl
I decided that I’d use some htaccess and some PHP. So here it is:

The .htaccess

RewriteEngine On
RewriteRule ^cgi-bin/yabb2/YaBB.pl$ /damnthatyabb.php [L,NC]

The PHP

<?php
if ($_GET['msg']) {
	echo 'Thanks for posting, spammer.';
}
else {
	echo '<form action="/cgi-bin/yabb2/YaBB.pl" method="GET"> <textarea name="msg"></textarea><input type="submit" /></form>';
}

What it does

It basically takes their input and does nothing with it, but gives them a sense of achievement. We don’t want to disappoint our guests now, do we?

You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

2 Responses to “Damn that YaBB!”

  1. daniel fenten

    Man this is the best site I’ve eva seen. this is so great is is awsome. OMB. the b stands for blazenwagen and even though I have no Idea who ryan mccue is he must be pretty cool (but a loner) *cough *cough

  2. Ryan McCue

    Vlad, you’re a blazenwagen. Maybe I should just mark your post as spam ;)

Hi. I live here to keep the peace. You can ignore me now :)