I found a great mod for phpBB forum administrators. This particular mod will ban any user who registers for your forum from a particular time zone. I’m not sure if many newbies to phpBB are aware, but most SPAM registrations come from GMT-12 Timezone. If you can prevent users from registering from that zone, you’ll go a long way to stop these SPAM-Bots.
Ban User Registration Based on TimeZone aka. SpamBot Timezone Registration Mod
Just alter the timezone range to prevent bots and people from zones you don’t want them coming from.
#
#—–[ OPEN ]——————————————
#
includes/usercp_register.php
#
#—–[ FIND ]——————————————
#
$sql = “SELECT MAX(user_id) AS total
#
#—–[ BEFORE, ADD ]——————————————
#
if (($user_timezone < -5) || ($user_timezone > 5))
{
$message = ‘Sorry, you appear to have triggered our spam security system. Please go back and modify some of the information and try again.To give you a hint, we only accept registrations from people based in (or near) the GMT time zone area.
‘;
message_die(GENERAL_MESSAGE, $message);
}
#
#—–[ CLOSE/SAVE ALL FILES ]—————————————
#
Thanks to InertaM for sharing this with everyone.
No related posts.



ALL of my spam registrations are still UTC -12, not sure why this still wouldn't work for those... admittedly some may have learned to register in board time, but I'm not seeing them. I'll being looking at the code and seeing if I can adapt this into phpbb 3.0.8 :)
- spam
- offensive
- disagree
- off topic
Like