Message to my spammers: Why can’t you just ignore my site you stupid f***! What did I ever do to you? Well I’m sure you will not read this message, at least your bots will so fu** them to! You may burn in hell with them!
After Iâ€™ve secured my web site with anti-spam plugins I’ve been assaulted by registering bots who will register an account and then spam me! I think that is a smart bot who reads the mail for the password, that is clever indeed but don’t use it on my site! Bitch! Sorry for my language I’m kind of angry right now but happy at the same time because I’ve managed to “hack” wordpress a little and put a Captcha functionality when registering. Thanks Web 1 Marketing for the QuickCaptcha script. Let’s see if spammers bots are smart enough now!
How to modify your wordpress installation and include a Captcha check? *
The easy way : *
1. Backup your wp-login.php file from your wordpress installation folder
2. Replace your wp-login.php file with the one modified by me: wp-login.zip and upload the wp-captcha.php script file in your wordpress installation folder (download wp-captcha.php)
Step by step way:*
1. Make a backup of your wp-login.php file (located in your installation folder)
2. Open wp-login.php for editing it and replace the call to nocache_headers(); with session_start(); from the top of the file:
3. Search for â€œcase ‘register’ :â€ and add the image check code:
// verify the image
if ($_SESSION['string'] != $_POST['imgver_string'])
$errors['user_email'] = __('<strong>ERROR</strong>: Invalid verification code.');
//end verify image
4. Scroll down in the wp-login.php file until you see the register form code “registerform” and insert the Captcha check image and fields code:
<!-- verify image -->
echo '<br><img src="wp-captcha.php?rand=' . rand(0,999999) . '" border="0" /></p>
<p><label for="code"><p>Please enter the code shown above:</label>
<input class="input" name="imgver_string" id="imgver_string" type="text" size="20" tabindex="10" value="" /></p>';
<!-- end verify image -->
5. Save the wp-login.php file.
6. Download the wp-Captcha.php script and upload it in the same folder as the wp-login.php file
7. That is all. Try it, here is how my Captcha hack looks like : register
* above steps apply to my wordpress version 2.1.1, it may be different for other versions.