[RC] No more spambots

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Ted@MPSC
Registered User
Posts: 4
Joined: Mon Dec 10, 2007 6:06 pm

Re: [RC] No more spambots

Post by Ted@MPSC » Mon Dec 10, 2007 8:56 pm

jalaln,
Well easy bot stopper has not been working up to par, as we have recently within the last week been attacked with viagra and porn posts. Although I cannot identify if these were actual bots or humans, I am assuming that they were bots that actually processed the email activation. I suppose it would be good to have both if at all possible.

Oh, I edited my first post with an updated coding as I figured out that there was a conflict with the IF statements.

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Mon Dec 10, 2007 9:09 pm

Ted@MPSC wrote:EDIT
Nevermind, I answered my own question. It was a conflict with the two if statements, once I combined them it works perfectly. For those who need to see the code, here it is.

Code: Select all

if( $website != '' || $user_timezone == '-12' || $user_timezone == '-11' )
You can also use:

Code: Select all

if( $website != '' && ( $user_timezone == '-12' || $user_timezone == '-11' ) )
This will block registrations when someone (a bot) selects timezone -12 or 11 AND having something in the website field. Legitimate users can still fill in their website in this way.

Or you can make it like:

Code: Select all

if ( $website != '' )
{
if ( $user_timezone == '-12' || $user_timezone == '-11' )
 {
   die();
 }
}
No more spambots for phpBB2 and phpBB3.

Ted@MPSC
Registered User
Posts: 4
Joined: Mon Dec 10, 2007 6:06 pm

Re: [RC] No more spambots

Post by Ted@MPSC » Mon Dec 10, 2007 9:28 pm

jalaln,

Thank you for the quick replies.

I see this little MOD has many variables available to it.
timezone = -12 or whatever you select
and with using the Easy Bot MOD website entered, and timezone selected.
As far as this is concerned, there are many variables that can be used.

I like the idea that you could use this in the form of new registrants entering a web site during the registration process can be blocked. A simple "New registrant" thread detailing that web site addresses and such can be updated after account is active should be sufficient for REAL USERS and a deterrant to bots. Oh well, now I am sounding like Jim Cary and talking out of the part of my body I sit on. :lol:

Well now that my code has been altered and seems to be working, time to keep a watchful eye on things again. Hopefully this is a huge help in combating this virus of spamming that plauges the internet forums.

kholman
Registered User
Posts: 65
Joined: Sun Jan 16, 2005 12:35 am
Location: Maryland USA
Contact:

Re: [RC] No more spambots

Post by kholman » Mon Dec 24, 2007 4:06 am

I just wanted to say thank you. This banning by default time zone has been the single most effective spammer blocker I have installed on 9 installations. Will it work on 3.0.0? I should probably be asking that in that forum but the thank you and testimonial belong in here.

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Mon Dec 24, 2007 9:51 pm

kholman wrote:I just wanted to say thank you. This banning by default time zone has been the single most effective spammer blocker I have installed on 9 installations. Will it work on 3.0.0? I should probably be asking that in that forum but the thank you and testimonial belong in here.
You are welcome.

We will have to wait and see how spambots are registering/posting in version 3.
No more spambots for phpBB2 and phpBB3.

phpDummie
Registered User
Posts: 292
Joined: Thu Feb 16, 2006 12:09 am
Location: USA
Contact:

Re: [RC] No more spambots

Post by phpDummie » Mon Dec 24, 2007 10:35 pm

kholman wrote:... Will it work on 3.0.0? ...
The genius of this idea is in its universality.
It will work anywhere. You can employ it not only for phpbb2 registration, but for guest comments too. It doesn't even have to be a phpbb.

Ted@MPSC
Registered User
Posts: 4
Joined: Mon Dec 10, 2007 6:06 pm

Re: [RC] No more spambots

Post by Ted@MPSC » Wed Jan 16, 2008 4:55 pm

Follow-up Post:

Since implementing this on 12/10/2007, we have not had one single spam attack. We have also had several new user registrations without having the need for email confirmations being sent. This is working very well.



Now I need to go knock on wood.

Thank you for the assistance.

LANFS
I've Been Banned!
Posts: 62
Joined: Sun Aug 12, 2007 5:10 pm
Contact:

Re: [RC] No more spambots

Post by LANFS » Sat Feb 16, 2008 10:53 am

That sounds interesting, but there's only one problem. I have simplified the registration so only the name, email and password appears. I guess I could (somehow) make the time zone appear, BUT I don't want to take out the robots, because I want to have a large number of users. It would be possible the people with time zone -12 can still register, but can't post? :?

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Sat Feb 16, 2008 12:45 pm

LANFS wrote:That sounds interesting, but there's only one problem. I have simplified the registration so only the name, email and password appears. I guess I could (somehow) make the time zone appear, BUT I don't want to take out the robots, because I want to have a large number of users. It would be possible the people with time zone -12 can still register, but can't post? :?
Open posting.php.

Find:

Code: Select all

//
// End session management
//
After, add:

Code: Select all

if ( $userdata['user_timezone'] == '-12' )
  {
     die('Die, bot. Die!');
  }
No more spambots for phpBB2 and phpBB3.

DasArab
Registered User
Posts: 40
Joined: Tue Apr 11, 2006 7:01 am
Location: Livingston, Scotland.

Re: [RC] No more spambots

Post by DasArab » Sun Mar 09, 2008 10:38 pm

I use easymod, how do i do it with that?

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Mon Mar 10, 2008 9:52 am

kholman wrote:I just wanted to say thank you. This banning by default time zone has been the single most effective spammer blocker I have installed on 9 installations. Will it work on 3.0.0? I should probably be asking that in that forum but the thank you and testimonial belong in here.
http://www.phpbb.com/community/viewtopi ... 0&t=776345 ;)
DasArab wrote:I use easymod, how do i do it with that?
OK. Download no_more_spambots.txt from here: http://www.mediafire.com/?p9awlkmmxdz, create a new folder, name it for example: nmspambots and copy the file to it. Then upload the folder to your admin/mods/ directory using any FTP client.
No more spambots for phpBB2 and phpBB3.

DasArab
Registered User
Posts: 40
Joined: Tue Apr 11, 2006 7:01 am
Location: Livingston, Scotland.

Re: [RC] No more spambots

Post by DasArab » Mon Mar 10, 2008 12:59 pm

Ok thanks for that 8-)

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Mon Mar 10, 2008 1:05 pm

DasArab wrote:Ok thanks for that 8-)
Please create a new account with GMT-12 and make sure all is correct (since I didn't test with EasyMod). The page should go blank.

Thanks.
No more spambots for phpBB2 and phpBB3.

User avatar
postman
Registered User
Posts: 179
Joined: Mon Jun 26, 2006 8:42 pm
Location: London UK
Contact:

Re: [RC] No more spambots

Post by postman » Thu Mar 13, 2008 10:39 pm

LANFS wrote:That sounds interesting, but there's only one problem. I have simplified the registration so only the name, email and password appears. I guess I could (somehow) make the time zone appear, BUT I don't want to take out the robots, because I want to have a large number of users. It would be possible the people with time zone -12 can still register, but can't post? :?
I've done the same,so do i need to put the time zone thing back to make this mod work.
And also,which tpl file is it that i need to put it back in,it was so long ago that i've forgotten what i did.

help!!

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Fri Mar 14, 2008 10:11 am

No need to put the time zone thing back in your registration page since spambots fill this field remotely.

Just install the MOD normally. Do what is written in the first post.

If you want to add it back, the TPL file is profile_add_body.tpl

Code: Select all

	<tr> 
	  <td class="row1"><span class="gen">{L_TIMEZONE}:</span></td>
	  <td class="row2"><span class="gensmall">{TIMEZONE_SELECT}</span></td>
	</tr>
Make sure that all removed fields in the registration page are visible when users edit their profiles.
No more spambots for phpBB2 and phpBB3.

Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 10 guests