Posted: Tue Sep 12, 2006 8:01 am Post subject: Spam protection -------------------------------------------------------------------------------- Hello again I saw on a german seo-site a nice way to protect phpbb-forum before spam-bots. I test it and think it works fine. There was no spam register since I include the following code. Edit Fieldname Replace SOMETHING by any word. Open /includes/usercp_register.php and search:Code: $username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : ''; replace with Code: $username = ( !empty($HTTP_POST_VARS['SOMETHING']) ) ? phpbb_clean_username($HTTP_POST_VARS['SOMETHING']) : ''; open /templates/.../profile_add_body.tpl search: Code: name="username" replace with Code: name="SOMETHING" Thatīs all! Spambotīs annoy After you edit your phpbb with the code above a real person canīt submit the fielname "username", but the spambots use the fieldname "username" to register. Now we know that somebody who want to reg. and use the fieldname "username" is a bot. If you include the code below, the bot must wait 20 seconds for answer Open /includes/usercp_register.php search: Code: $trim_var_list = array('cur_password' => 'cur_password', 'new_password' => 'new_password', 'password_confirm' => add before Code: if ($HTTP_POST_VARS['username']) { sleep (20); } Thatīs all!