[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.
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 »

jalaln wrote: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.
Ok i've done it,haven't put the timezone thing back,here's hoping though.
I'm getting bout 30+ a day,will report back in a couple of days.
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln »

postman wrote:I'm getting bout 30+ a day,will report back in a couple of days.
"Should you not be entirely satisfied, we offer a money back guarantee." :P ;)
No more spambots for phpBB2 and phpBB3.
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 »

jalaln wrote:
postman wrote:I'm getting bout 30+ a day,will report back in a couple of days.
"Should you not be entirely satisfied, we offer a money back guarantee." :P ;)
:lol:
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 »

Ok,just hold on to that cheque for a bit. :|
I done it but nothing happened at all,just as many bots.
So i've put the timezone thing back in,tested it by registering and it works i was bumped off.
So it seems,with me anyway that i need the timezone thing in,the proof will be when i next log on tomm.
Please,please work as i'm being hammered with spam!!
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln »

Please post your usercp_register.php and profile_add_body.tpl files.
No more spambots for phpBB2 and phpBB3.
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 »

jalaln wrote:Please post your usercp_register.php and profile_add_body.tpl files.
Well whooopeee do da do do :D it worked a treat after i put the timezone thing back on the register page.
Not one single spam bot!!!

Mate,you're a star and will deffo use this for my '3' board.
Image
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln »

Great! :) You can remove the humanizer MOD since it's no longer efficient.
No more spambots for phpBB2 and phpBB3.
jerx
Registered User
Posts: 167
Joined: Fri Sep 02, 2005 4:27 am

Re: [RC] No more spambots

Post by jerx »

Thank you for this great and easy mod!

I only regret that I have not used this long before, it would have saved me a lot of trouble with these m... f... spam bots. Every day I had lots of spam registrations and some even posted porn. Since 4 days I have not had a single bot registration. I am glad that I remembered this mod and was able to find it some days ago, although it has not been replied to for some days, so that other anti spam mods have been listed first.

I haven' t tried the other anti spam mods, but I cannot imagine that any of them would be easier and more efficient.
ace2ace
Registered User
Posts: 364
Joined: Sat Aug 14, 2004 3:48 pm

Re: [RC] No more spambots

Post by ace2ace »

Awesome idea, never would have thought of GMT -12 being a habitation of choice for spambots, thanks :D
Question: would it be possible to make it seem as if it the registration had worked, in effect directing the user to the "your account has been created" page, without actually sending the information?
Yes... this is what I did for my site:

Code: Select all

			 if( $user_timezone == '-12' )
			 {
				$message = $lang['Account_inactive'] . '<br /><br />';				message_die(GENERAL_MESSAGE, $message);
			 }
All it does is post the message to say that the registration was successfull, and that the user should go check his e-mail, although nothing happened. LOL.
Great MOD!!! Thanks.
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln »

ace2ace wrote:Yes... this is what I did for my site:

Code: Select all

			 if( $user_timezone == '-12' )
			 {
				$message = $lang['Account_inactive'] . '<br /><br />';				message_die(GENERAL_MESSAGE, $message);
			 }
All it does is post the message to say that the registration was successfull, and that the user should go check his e-mail, although nothing happened. LOL.
Great MOD!!! Thanks.
You should add die(); before the closing bracket.
No more spambots for phpBB2 and phpBB3.
ace2ace
Registered User
Posts: 364
Joined: Sat Aug 14, 2004 3:48 pm

Re: [RC] No more spambots

Post by ace2ace »

It's not necessary to add die();
Search for message_die() in the usercp_register.php and you will see there is no usage of die() in case like this one.
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln »

ace2ace wrote:It's not necessary to add die();
Search for message_die() in the usercp_register.php and you will see there is no usage of die() in case like this one.
Can you register a GMT-12 user and check your member list? See if the user has been added. Thanks.
No more spambots for phpBB2 and phpBB3.
ace2ace
Registered User
Posts: 364
Joined: Sat Aug 14, 2004 3:48 pm

Re: [RC] No more spambots

Post by ace2ace »

That was the test to see if this works.
It works great. Hopefully, it will take a long time before the hackers figure out the trick.
I have not seen any of them since I implemented this MOD... I used to get at least 2,3 of those a day. Some days were worse. They would come in like lemmings.
Now they are OUT for a while.
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln »

ace2ace wrote:Hopefully, it will take a long time before the hackers figure out the trick.
since blocking gmt-12 in June 2007, i never had a single bot (same for phpbb3).

so yeah, it should last many years before new/intelligent spambots are created. ;)
No more spambots for phpBB2 and phpBB3.
LANFS
I've Been Banned!
Posts: 62
Joined: Sun Aug 12, 2007 5:10 pm
Contact:

Re: [RC] No more spambots

Post by LANFS »

jalaln wrote:
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!');
  }
Thanks! It works BUT I would like to improve it, if it's possible. :oops: I get a blank page wich isn't very nice. Maybe some humans choose by mistake GMT-12. :cry:

I want something like this:

Code: Select all

#-----[ OPEN ]------------------------------------------ 
#

includes/functions_post.php 

# 
#-----[ FIND ]------------------------------------------ 
# 

        // Check message
	if (!empty($message))
	{
		$bbcode_uid = ($bbcode_on) ? make_bbcode_uid() : '';
		$message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
	}
	else if ($mode != 'delete' && $mode != 'poll_delete') 
	{
		$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_message'] : $lang['Empty_message'];
	}

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	// FuNEnD3R's check ALL CAPS 
	if (strlen($subject) > 3 && (md5(strtoupper($subject)) == md5($subject)) )
	{
        $error_msg .= (!empty($error_msg)) ? '<br />' . $lang['All_caps_subject'] : $lang['All_caps_subject'];
	}
	if (strlen($message) > 3 && (md5(strtoupper($message)) == md5($message)) )
	{
        $error_msg .= (!empty($error_msg)) ? '<br />' . $lang['All_caps_message'] : $lang['All_caps_message'];
	}
This is for preventing a message with just capital letters. I would like a message like this to show up so I can tell people to change Time Zone in their profiles. (with a language variable like in the previous example)

Thanks! This is the best way so far to stop robots. ;)
Post Reply

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