more on portfolio









August 2008
M T W T F S S
« May «-»  
 123
45678910
11121314151617
18192021222324
25262728293031






 

How to: Block Spambots for phpBB

Log entry of March 22nd 2008 06:51:05 pm
Filed under: How To, PHPbb, PHPbb Mods, phpBB Related
This is a clever idea in blocking spambot for phpbb 2 (for phpbb 3, click here).

It was posted by jalaln, a member from phpbb community. This modification is to block registrations from timezone GMT-12 that is used by almost all spambots.

Here’s the coding: # #—–[ OPEN ]—————————————— # includes/usercp_register.php # #—–[ FIND ]—————————————— # if ( !($row = $db->sql_fetchrow($result)) ) { message_die(GENERAL_ERROR, ‘Could not obtain next user_id information’, ”, __LINE__, __FILE__, $sql); } $user_id = …