by noemz » Mon 20 Jul, 2009 7:26 pm
In case anybody cares, this is how I quickly and easily stopped spam bots from circumventing the visual confirmation in order to post as guests or register spam accounts on the forum.
The password is "areez" (Zeera backwards, so spam bots can't solve the question with a quick Google search). It does mean changing little things in four different files, and it's not very elegant, but it's easier than creating a new panel in the Administration Control Panel with validation etc.
Note: This is just what I did to my own forum, which is currently phpBB-3.0.0. I make no warranty that it will work for other people or that you won't possibly destroy your own forum setup, especially if you are fumble-fingered. Back up your code. Seriously.
-------------------------------------------------------------------------------------
OPEN: posting.php
FIND:
if (empty($confirm_row['code']) || strcasecmp($confirm_row['code'], $confirm_code) !== 0)
CHANGE TO:
if (empty($confirm_row['code']) || strcasecmp($hackZeera, $confirm_code) !== 0)
INSERT BEFORE:
$hackZeera = "areez";
SAVE AND CLOSE
-------------------------------------------------------------------------------------
OPEN: includes/ucp/ucp_register.php
FIND:
if (strcasecmp($row['code'], $data['confirm_code']) === 0)
CHANGE TO:
if (strcasecmp($hackZeera, $data['confirm_code']) === 0)
INSERT BEFORE:
$hackZeera = "areez";
SAVE AND CLOSE
-------------------------------------------------------------------------------------
OPEN: language/en/common.php
FIND:
'CONFIRM_CODE_EXPLAIN' => 'Enter the code exactly as it appears. All letters are case insensitive, there is no zero.',
CHANGE TO:
'CONFIRM_CODE_EXPLAIN' => '******* IGNORE THE LETTERS AND NUMBERS !!! Spell "Zeera" backwards into the space instead. Case does not matter.',
SAVE AND CLOSE
-------------------------------------------------------------------------------------
OPEN: language/en/ucp.php
FIND:
'CONFIRM_EXPLAIN' => 'To prevent automated registrations the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.',
CHANGE TO:
'CONFIRM_EXPLAIN' => 'To prevent automated registrations the board requires you to enter a confirmation code. The image below does NOT keep out spam bots, so please ignore it altogether and spell the word ZEERA backwards into the space instead. If you are having trouble then please contact the %sBoard Administrator%s.',
SAVE AND CLOSE
-------------------------------------------------------------------------------------