Page Index Toggle Pages: 1 2 [3] 4 5 ... 16 Send TopicPrint
Very Hot Topic (More than 25 Replies) StopForumSpam Mod V0.6 for YaBB 2.5/2.5.2 (Read 59068 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #30 - Oct 15th, 2011 at 1:28am
Print Post  
earthylad wrote on Oct 15th, 2011 at 12:23am:
I take it this mod won't work in 2.3? I've tried installing manually and get an 'Internal Sever Error'.

Hi,

I see no reason at all why it wouldn't work in 2.3. The only slight change is the search string in Register.pl:

2.3:
Code
Select All
    &banning("$member{'regusername'}", "$member{'email'}"); 


2.5:
Code
Select All
    &banning($member{'regusername'}, $member{'email'}); 


But the code should work fine...

Edited:
Not tested, but try the one attached to this post.

Edited:
Oct 16th, 2011 at 10:11pm - Edited to fix syntax error in attached file.
« Last Edit: Oct 16th, 2011 at 10:11pm by Derek Barnstorm »  

StopForumSpam_Mod_V0_1_2_23.zip ( 1 KB | 3 Downloads )
Back to top
 
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #31 - Oct 15th, 2011 at 7:10am
Print Post  
Hi Derek,

works Smiley
  

Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #32 - Oct 15th, 2011 at 2:46pm
Print Post  
Great! Smiley
  
Back to top
 
IP Logged
 
earthylad
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 7
Location: Isle of Skye
Joined: Dec 14th, 2004
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #33 - Oct 15th, 2011 at 11:01pm
Print Post  
Hi Derek,

Thanks for amended .zip file. Manually edited files, but still no joy, same as last time 'internal server error'!
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #34 - Oct 16th, 2011 at 12:20am
Print Post  
See if you can get some more information from the 500 error - uncomment this line in YaBB.pl:

Code
Select All
# use CGI::Carp qw(fatalsToBrowser); # used only for tests 


So, just remove the hash symbol:

Code
Select All
use CGI::Carp qw(fatalsToBrowser); # used only for tests 

  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #35 - Oct 16th, 2011 at 2:33am
Print Post  
I've just tested this in 2.3 and it works absolutely fine - If you've installed it manually then I'm guessing that you must have made a mistake when editing the code. Try what I suggested in my above post to see if you can get some more info, or double check that you have made the edits correctly.
  
Back to top
 
IP Logged
 
earthylad
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 7
Location: Isle of Skye
Joined: Dec 14th, 2004
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #36 - Oct 16th, 2011 at 7:16pm
Print Post  
Hi Derek, Thanks for the guidance. Done as you asked and this is the result:

**********************************************************
Error: Untrapped Error :
Can't locate XML/Simple.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . ./Modules) at ./Sources/Register.pl line 319. BEGIN failed--compilation aborted at ./Sources/Register.pl line 319. Compilation failed in require at /secure/h/highlandpoultryadoption.co.uk/cgibin/yabb2/YaBB.pl line 166.
**********************************************************

Could you let me know if this helps?

Thanks,
Graham.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.1 for YaBB 2.5
Reply #37 - Oct 16th, 2011 at 8:01pm
Print Post  
Ah, it's because you haven't got the correct modules installed. See this post for XML::Simple:

http://www.boardmod.org/yabb2/YaBB.pl?num=1315522544/19#19

But it also relies on XML::SAX, and the chances are are that you haven't got that installed either. You'll need to ask your host to install XML::SAX for you I'm afraid. Pyragony had the same problem:

http://www.boardmod.org/yabb2/YaBB.pl?num=1315522544/22#22

Unfortunately, without the correct modules the Mod won't work.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.2 for YaBB 2.5
Reply #38 - Oct 16th, 2011 at 10:22pm
Print Post  
Oops! Just noticed I'd made a small syntax error in this. Embarrassed

V0.1.2 attached to the first post. If you don't want to install the Mod again, find this line in Register.pl:

Code
Select All
    if ($spam_user_check->{appears}->[0] eq "yes" || $spam_user_check->{appears}->[1] eq "yes" || $spam_user_check->{appears}->[2] eq "yes") { &fatal_error("reg_spam") }; 


And change to:

Code
Select All
    if ($spam_user_check->{appears}->[0] eq "yes" || $spam_user_check->{appears}->[1] eq "yes" || $spam_user_check->{appears}->[2] eq "yes") { &fatal_error("reg_spam"); } 


Whoops! Embarrassed
  
Back to top
 
IP Logged
 
earthylad
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 7
Location: Isle of Skye
Joined: Dec 14th, 2004
Re: StopForumSpam Mod V0.1.2 for YaBB 2.5
Reply #39 - Oct 17th, 2011 at 7:02pm
Print Post  
Hi Derek,

Got my ISP to install the Perl module and have installed the folders +files to the Modules folder. Glad to say all your efforts have not been in vain. Works as far as I can see. I entered a user name and email address of known spanner and got:

'Registration not allowed: Your details match those of a known spammer'

Thanks again,
Graham.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.1.2 for YaBB 2.5
Reply #40 - Oct 17th, 2011 at 7:08pm
Print Post  
That's fantastic, Graham. I'm glad it worked out for you. Smiley
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.2 for YaBB 2.5
Reply #41 - Oct 20th, 2011 at 2:18pm
Print Post  
I've added Admin options to this now so that you can choose which details you want to check against the database. The options are under a new tab in Admin Center - Antispam Settings - StopForumSpam.

V0.2 attached to the first post with an updated screenshot.

If you've already got the Mod installed and you don't want to exclude any details, then there's no real need to install this version. If you do want to install this version then you will need to uninstall and reinstall.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.2 for YaBB 2.5
Reply #42 - Oct 21st, 2011 at 1:56pm
Print Post  
BloodyRue wrote on Oct 11th, 2011 at 11:46am:
I just got this error, but the forum spammer mod has been working fine before this one:

Could not find YaBB.xml in ./ at ./Sources/Register.pl line 584

I just noticed the same error in my Error Log today. Unless it couldn't connect to the StopForumSpam website, I'm not too sure why yet though.
  
Back to top
 
IP Logged
 
cepheid
New Member
*
Offline


What?

Posts: 37
Joined: Jun 4th, 2009
Re: StopForumSpam Mod V0.2 for YaBB 2.5
Reply #43 - Oct 26th, 2011 at 5:25pm
Print Post  
Derek Barnstorm wrote on Oct 21st, 2011 at 1:56pm:
I just noticed the same error in my Error Log today. Unless it couldn't connect to the StopForumSpam website, I'm not too sure why yet though.  

There is a limit of 20,000 queries per day from a single IP... I presume you're not going over that limit, right? Smiley

I haven't had the chance to look through the code yet, so let me ask directly: do you perform the spam check as the _last_ check before allowing registration, or is it performed before other checks?  It should be performed last, because if any other failure occurs (e.g. captcha not correct, etc.), there's no reason to check the IP/email/username.  This would keep the spam queries to a minimum.  I assume you do it as the last check but I just wanted to make sure. Smiley

Thanks.
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: StopForumSpam Mod V0.2.1 for YaBB 2.5
Reply #44 - Oct 26th, 2011 at 6:14pm
Print Post  
Hi cepheid,

cepheid wrote on Oct 26th, 2011 at 5:25pm:
Derek Barnstorm wrote on Oct 21st, 2011 at 1:56pm:
I just noticed the same error in my Error Log today. Unless it couldn't connect to the StopForumSpam website, I'm not too sure why yet though.  

There is a limit of 20,000 queries per day from a single IP... I presume you're not going over that limit, right? Smiley

Nope, I'm definitely not going over that. I did look into it a few days ago though and it is when it can't connect to the StopForumSpam website. I've added a simple if/else to check if it can connect now, and if it can't then it will throw a more friendly error message:

Quote:
Sorry, there was an error during the registration process. This is only a temporary connection error, so please either go back and try again or try again later.

cepheid wrote on Oct 26th, 2011 at 5:25pm:
I haven't had the chance to look through the code yet, so let me ask directly: do you perform the spam check as the _last_ check before allowing registration, or is it performed before other checks?  It should be performed last, because if any other failure occurs (e.g. captcha not correct, etc.), there's no reason to check the IP/email/username.  This would keep the spam queries to a minimum.  I assume you do it as the last check but I just wanted to make sure. 

Actually, it was before most of the other checks - I've moved it below the validation check now. V0.2.1 is attached to the first post - changes are in Error.lng and Register.pl.

Thanks for your input. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 ... 16
Send TopicPrint