phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Spam protection

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 96

Spam protectionPosted: 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 Twisted Evil
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!

_________________
macnack
Back to top
Visit poster's website
Nicolas
phpBB SEO Team
phpBB SEO Team


Joined: 25 Aug 2006
Posts: 120

Spam protectionPosted: Tue Sep 12, 2006 8:11 am    Post subject: Re: Spam protection

It's sound very interesting, thank for these tricks. Wink
I will apply them on my board tonight...

_________________
http://www.VAG-Forum.com
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Spam protectionPosted: Tue Sep 12, 2006 11:02 am    Post subject: Re: Spam protection

Thanks for sharing macnack Wink

Yep this is similar to espicon technique, but he's playing with the agreed $_POST var instead.

This on is simpler indeed and as efficient I guess.
One problem we have here is automated registering bots should not be able to register if we set user confirmation and captcha to true. Even though I think some automated process is here still possible (as there are some local program able to crack the captcha, we could think of an automated combination of a spam bot and this software running elsewhere), I am pretty sure we'll have to face more and more Human spam as people get paid nowadays just to do so.

Another thing elaborated in the espicon thread is that it worked out great at first, but once it became more widely used, spamers started adding a check on the customised var (as it's coded in the html it's not so hard to check it's name) and went through the trick.

I guess our only real weapon here, if not active moderation, is to track spamer IP and to ban all those that seems to come back (avoid dynamic IP banning at first).

It's a never ending fight I guess Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
lucy



Joined: 15 Jun 2007
Posts: 2

Spam protectionPosted: Fri Jun 15, 2007 9:30 pm    Post subject: Re: Spam protection

thanks for that tip on reducing spam registrations...
i've tried it on 1 board (i admin 3) so I'm curious to see if the 2 keep getting spam and the 1 doesn't! normally they each get 5 or so a day to register... sometimes more sometimes less.

at first i'd made a mistake, cause there are 2 places it says
name="username"
at least i think thats what my mistake was, leaving one out.

another thing i did was... i put the email address blank below the password ones...
and removed the place to put a website.

hopefully it'll make a difference!
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Spam protectionPosted: Fri Jun 15, 2007 10:41 pm    Post subject: Re: Spam protection

And welcome Very Happy

The better captcha mod can give pretty good results as well, to fight against automated registrations.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
lucy



Joined: 15 Jun 2007
Posts: 2

Spam protectionPosted: Fri Jun 15, 2007 10:53 pm    Post subject: Re: Spam protection

i noticed when i joined here there was a different one than what i have, so i might try it also if what i've done doesn't help.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Spam protectionPosted: Sat Jun 16, 2007 9:33 pm    Post subject: Re: Spam protection

Both is a good thing as well, the captcha is really simple to install, just one line to edit.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
jean



Joined: 25 Sep 2007
Posts: 2

Spam protectionPosted: Tue Sep 25, 2007 2:46 pm    Post subject: Can't locate the following code: $username = ( !empty($HTTP_

I can not see this piece of code you want us to modify.

($username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';)

I searched in includes/usercp_register.php I can see that line of code : Please help. I'm getting lots sapmers ...and I can't figure out how to stop them. Bellow is the /includes/usercp_register.php code:
Back to top
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Spam protectionPosted: Wed Sep 26, 2007 1:46 am    Post subject: Re: Spam protection

Jean, it is not necessary to post the entire content of your file

If you want to provide a text version and post the link up, that would be nice Smile . I took a quick look and I have to ask, what vresion of phpbb are you using?
Back to top
jean



Joined: 25 Sep 2007
Posts: 2

Spam protectionPosted: Thu Sep 27, 2007 3:32 am    Post subject: Re: Spam protection

phpBB-2.0.22
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Spam protectionPosted: Thu Sep 27, 2007 9:39 am    Post subject: Re: Spam protection

Besides :

dcz wrote:
And welcome Very Happy

The better captcha mod can give pretty good results as well, to fight against automated registrations.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
NazTheEternal



Joined: 14 Nov 2007
Posts: 2

Spam protectionPosted: Wed Nov 14, 2007 8:56 am    Post subject: Re: Spam protection

When ever i try putting in the following code

Code:
if ($HTTP_POST_VARS['username']) { sleep (20); }


It gives me some sort of SQL error, something about not being able to select the default time format.....

Code:
Could not select default dateformat

DEBUG MODE

SQL Error : 2013 Lost connection to MySQL server during query

SELECT config_value FROM phpbb_config WHERE config_name = 'default_dateformat'

Line : 411
File : usercp_register.php


Any ideas what i could do to fix that?!
Back to top
NazTheEternal



Joined: 14 Nov 2007
Posts: 2

Spam protectionPosted: Wed Nov 14, 2007 9:01 am    Post subject: Re: Spam protection

Oh nvm all that i misunderstood what the addon does..........

I thought it would make everyone wait 20 seconds on the register page for the application to go through, but tis not so =S
Back to top
littlephoenix



Joined: 29 Nov 2007
Posts: 3

Spam protectionPosted: Thu Nov 29, 2007 5:16 am    Post subject: Re: Spam protection

i have tried this bot stopper if you will and it seems as though bots are still posting, are you guys sure this works 100% is there any other module that i need? Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: