MOD Description: Blocks registrations from timezone UTC - 12 (Baker Island Time) that is used by almost all spambots.
MOD Version: RC 1.0.0
MOD Download:
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_register.php
#
#-----[ FIND ]------------------------------------------
#
$data = array(
'username' => utf8_normalize_nfc(request_var('username', '', true)),
'new_password' => request_var('new_password', '', true),
'password_confirm' => request_var('password_confirm', '', true),
'email' => strtolower(request_var('email', '')),
'email_confirm' => strtolower(request_var('email_confirm', '')),
'confirm_code' => request_var('confirm_code', ''),
'lang' => basename(request_var('lang', $user->lang_name)),
'tz' => request_var('tz', (float) $timezone),
);
#
#----[ AFTER, ADD ]------------------------------------------
#
if ($data['tz'] == -12.00)
{
die('Die, bot! Die.');
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
DON'T WORRY ABOUT BLOCKING UTC-12.
But, why is it used by all spambots? Well, because they are coded to select the first option in any dropdown box.No human habitations are in this time zone.
UTC-12 is a nautical time zone comprising the high seas between 180°W and 172°30'W longitude.
Subtract twelve hours from Coordinated Universal Time to obtain the time for this zone.
Ships using this time are the last to begin each calendar day.
People can still select UTC-12 after they register, in their profiles.
Now you can unban most of your blocked IPs, disallowed names, blocked domains...
I've been using this MOD since 19 June 2007 on phpBB2, and since converting to phpBB3. I have never ever had a single spambot. I have no other anti-spambots MODs installed and visual confirmation turned off.
Enjoy!
NOTE: Same MOD for phpBB2: http://www.phpbb.com/community/viewtopi ... 6&t=555959