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: Select all
$username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';
replace with
- Code: Select all
$username = ( !empty($HTTP_POST_VARS['SOMETHING']) ) ? phpbb_clean_username($HTTP_POST_VARS['SOMETHING']) : '';
open
/templates/.../profile_add_body.tpl
search:
- Code: Select all
name="username"
replace with
- Code: Select all
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: Select all
$trim_var_list = array('cur_password' => 'cur_password', 'new_password' => 'new_password', 'password_confirm' =>
add before
- Code: Select all
if ($HTTP_POST_VARS['username']) { sleep (20); }
That´s all!

English |
French
News
phpBB SEO



