Stop Spambot Registration

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
65
71%
Very Good
12
13%
Good
5
5%
Fair
4
4%
Poor
5
5%
 
Total votes: 91

User avatar
harishkumar09
Registered User
Posts: 115
Joined: Mon Feb 06, 2006 5:37 pm
Location: Bengaluru
Contact:

Re: Stop Spambot Registration

Post by harishkumar09 » Tue May 01, 2007 12:59 pm

Thank you very much for your kindness nitrous oxide.But that is the Beta version of the latest EasyMOd 0.3.0

I would like to have a time tested , battle proven , lower version , which works , even if it has limited features.My forum is 2.0.19.

Adding Mods is serious business.No laughing matter ;) .So I would like to have the best 8)
Love & Regards,
Harish Kumar.

billmorrow
Registered User
Posts: 37
Joined: Tue Jun 06, 2006 12:41 am
Location: Georgia

Re: Stop Spambot Registration

Post by billmorrow » Tue May 01, 2007 5:36 pm

hello, folks.... :)

/begin rant

going through this MOD and wanting to MOD the MOD a little, i am struck by the total LACK of comments in the code..

IF this is an educational as well as support forum AND IF the intent is to be helpful THEN there should be at least a few critical comments embedded within the code..

/end rant

;)

what i REALLY would love to have is a comment explaining this line, below:

if( $icq!= '' || $aim != '' || $msn != '' || $yim != '' || $website != '' || $location != '' || $occupation != '' || $interests != '' || $signature != '' )

what i THINK it does is set up an IF statement that will do something, as yet undetermined by yours truly, based upon what is IN, or NOT in, the various data fields..

i am guessing, without a php manual at hand, that IF this data field: $aim != '' is empty the IF statement fails and falls through to the next line in the code..

and that if there IS data, then a BOT has made it and the whole process dies and the spambot warning email is sent..

Soooooo, off to the digital trenches to do battle with php stuff and HOPE my miniscual experience with "programming" or total lack of experience writing BAT files will get me through to a MODified MOD that will fit my needs.. :)

edit after trying the modified MOD..

i modified this line in the MOD:

if( $icq!= '' || $aim != '' || $msn != '' || $yim != '' || $website != '' || $location != '' || $occupation != '' || $interests != '' || $signature != '' )

to this:

if( $website != '' )

an error occured in line 356 of includes/template.php, an unexpected "something which i did not note at the time", this is line 358:
$code_lines[$i] .= '} // END ' . $n[1];

this error occured when i tried a test registeration..

if anyone has any knowledge on this matter a post here will be appreciated..

thanks and good morning..
Bill Morrow

ogi
Registered User
Posts: 20
Joined: Wed Aug 14, 2002 4:58 pm

Re: Stop Spambot Registration

Post by ogi » Thu May 03, 2007 2:50 am

Ok, I have installed this mod manually and now when I click on register , this is what i get...

Parse error: syntax error, unexpected $end in /home/vosa/public_html/fkv-forum/includes/template.php(127) : eval()'d code on line 301

Can someone help me out? Thanks.

billmorrow
Registered User
Posts: 37
Joined: Tue Jun 06, 2006 12:41 am
Location: Georgia

Re: Stop Spambot Registration

Post by billmorrow » Thu May 03, 2007 7:17 am

ogi wrote: Ok, I have installed this mod manually and now when I click on register , this is what i get...

Parse error: syntax error, unexpected $end in /home/vosa/public_html/fkv-forum/includes/template.php(127) : eval()'d code on line 301

Can someone help me out? Thanks.


ok, this is a case of the blind (or nearly blind), leading the blind (or nearly blind).. ;)

the error message tells you where the error is..
its in line 301 of template.php..

this is the code section, assuming your line numbers are the same as mine..


293 // This one will handle varrefs WITH namespaces
294 $varrefs = array();
295 preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs);
296 $varcount = sizeof($varrefs[1]);
297 for ($i = 0; $i < $varcount; $i++)
298 {
299 $namespace = $varrefs[1][$i];
300 $varname = $varrefs[3][$i];
301 $new = $this->generate_block_varref($namespace, $varname);
302
303 $code = str_replace($varrefs[0][$i], $new, $code);
304 }


what all this means is not clear to me but i would think it has something to do with the warning NOT to fill in the vqarious data fields like website, occupation and so forth..

so check your mod in: includes/usercp_register.php

this is where i would start..

OH, here is a good resource:
http://www.tizag.com/phpT/


good luck.. :)
Bill Morrow

ogi
Registered User
Posts: 20
Joined: Wed Aug 14, 2002 4:58 pm

Re: Stop Spambot Registration

Post by ogi » Sun May 06, 2007 6:41 am

Heh..it was a template thing. I use athena, and problem would go away if I switched to subsilver. I reinstalled everything and it's all good now. Thanks in any case;)

billmorrow
Registered User
Posts: 37
Joined: Tue Jun 06, 2006 12:41 am
Location: Georgia

Re: Stop Spambot Registration

Post by billmorrow » Sun May 06, 2007 6:47 am

heh.. :)
did you mention you were using something other than subsilver..??
i must keep that in mind should i want to change from sub-silver..

in any case, i built my own spambot killer and it only took a few lines of code..
have not had a spambot since early friday AM..

ALSO, FWIW, the overwhelming response to my few pleas for help show that we all are really on our own and should have a modicum of script writing experience and a few basic tools so as to be self sufficient.. 8O

happy camping.. :)
Bill Morrow

greenbat
Registered User
Posts: 1
Joined: Mon May 21, 2007 8:39 pm

Re: Stop Spambot Registration

Post by greenbat » Mon May 21, 2007 8:45 pm

Installation appears to have gone OK except the warning message not to fill in profile details does not appear.
I am using 2.0.22. It rejects test registrations and sends emails OK. Any ideas?

Dakota R/T
Registered User
Posts: 1
Joined: Thu May 24, 2007 12:53 pm

Re: Stop Spambot Registration

Post by Dakota R/T » Thu May 24, 2007 1:05 pm

I'm new to phpbb and this is my first mod attempt. Using Easymod when I click on process it just takes me to a blank screen and doesn't seem to install the mod. I can't tell if it's a problem with the mod or my easymod setup. I'm using the default subsilver theme. When I installed easymod it went perfectly with no errors. I looked through a lot of the different spam bot stopping mods and thought this one looked nice and simple. I'm getting slammed with bot signups and need to figure out a way to stop it. My board is running on 2.0.20, does it need to be on .22 for this to work?

JohnnyMcKinney
Registered User
Posts: 207
Joined: Thu Nov 23, 2006 3:03 am

Re: Stop Spambot Registration

Post by JohnnyMcKinney » Fri May 25, 2007 9:46 am

I had this mod working perfectly fine. However I removed it to install the report modification and now it does not work. Do you know why? Everything works except the big red box that is suppose to pop up now doesnt.

Injected1
Registered User
Posts: 29
Joined: Tue Aug 15, 2006 9:44 pm
Contact:

Re: Stop Spambot Registration

Post by Injected1 » Fri May 25, 2007 6:35 pm

Code: Select all

Parse error: parse error, unexpected '}' in /var/www/html/development/includes/template.php(127) : eval()'d code on line 10
Tried to install this mod, I am not to smart in PHP. I got this error tried to parse it out myself. Couldn't get anything. I removed to warning from the "profile_addbody.tpl" and then the page turned up with just the header and the footer and nothing in between. Any ideas?

Injected1
Registered User
Posts: 29
Joined: Tue Aug 15, 2006 9:44 pm
Contact:

Re: Stop Spambot Registration

Post by Injected1 » Fri May 25, 2007 6:48 pm

getting closer (i think) I changed

Code: Select all

<!-- BEGIN switch_register -->
	<tr bgcolor="#FF0000">	
	  <td colspan="2">
		<span class="h1" style="color: white">{SPAMBOT_MESSAGE}</span><br /><br />
		<span class="gen" style="color: white">{SPAMBOT_MESSAGE_EXPLAIN}</span>
	  </td>
	</tr>
	<!-- END switch_register -->
to

Code: Select all

<!-- bswitch_register -->
	<tr bgcolor="#FF0000">	
	  <td colspan="2">
		<span class="h1" style="color: white">{SPAMBOT_MESSAGE}</span><br /><br />
		<span class="gen" style="color: white">{SPAMBOT_MESSAGE_EXPLAIN}</span>
	  </td>
	</tr>
	<!-- eswitch_register -->
And now I get the footer at the top of the page, then the header, then I get the warning, but noting else.

Injected1
Registered User
Posts: 29
Joined: Tue Aug 15, 2006 9:44 pm
Contact:

Re: Stop Spambot Registration

Post by Injected1 » Sun May 27, 2007 3:24 pm

anybody got any ideas on a fix?

jusie
Registered User
Posts: 6
Joined: Thu May 31, 2007 6:44 pm

Re: Stop Spambot Registration

Post by jusie » Thu May 31, 2007 6:50 pm

This may be just what I've been looking for. I've had up to 10 spambot registrations per day lately and I am so tired of removing them all the time. I'll report back how I get on.

User avatar
tarotamerica
Registered User
Posts: 230
Joined: Thu Feb 22, 2007 10:30 am
Contact:

Re: Stop Spambot Registration

Post by tarotamerica » Tue Jun 05, 2007 10:49 pm

I have had this mod for about two months and it has saved me hours of checking registrations and deleting SPAM from my forum. I have gotten over 100 SPAMBOTS stopped because of this mod. It is excellent!
Coincidences are God's way of remaining anonymous
—Albert Einstein

Marty H
Registered User
Posts: 12
Joined: Sun Mar 19, 2006 9:28 am

Re: Stop Spambot Registration

Post by Marty H » Tue Jun 12, 2007 6:52 am

to change the email account that the report goes to is it as simple as changing this

Code: Select all

//----BEGIN E-mail Notification
//----NOTE: Remove the code between "BEGIN/END E-mail Notification" if you don't want to receive e-mail notifications.
		include($phpbb_root_path . 'includes/emailer.'.$phpEx);
		$emailer = new emailer($board_config['smtp_delivery']);

		$emailer->from($board_config['board_email']);
		$emailer->replyto($board_config['board_email']);

		$emailer->use_template('spambot_notify', $board_config['default_lang']);
		***$emailer->email_address($board_config['board_email']);****
		$emailer->set_subject($lang['Spambot_registration_attempt']);
to

Code: Select all

//----BEGIN E-mail Notification
//----NOTE: Remove the code between "BEGIN/END E-mail Notification" if you don't want to receive e-mail notifications.
		include($phpbb_root_path . 'includes/emailer.'.$phpEx);
		$emailer = new emailer($board_config['smtp_delivery']);

		$emailer->from($board_config['board_email']);
		$emailer->replyto($board_config['board_email']);

		$emailer->use_template('spambot_notify', $board_config['default_lang']);
		****$emailer->email_address(Addy@URL.com);****
		$emailer->set_subject($lang['Spambot_registration_attempt']);
thanks

great MOD BTW

Marty

Post Reply

Return to “[2.0.x] MOD Database Releases”