[CODE] Integrating the spam filter into phpBB3

Mods for various forums/blogs for use with the SBST

Moderator: fspamlist

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Tue Jul 14, 2009 1:55 pm

No dice on any of that....

=+\ =+\ =+\ =+\ =+\ =+\ =+\ =+\


ugh...............

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Tue Jul 14, 2009 1:56 pm

Have you;

1. Deleted the files you uploaded
2. Restored a copy of ALL of the original files you modified
3. Deleted ALL of the files in the cache folder

???
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Tue Jul 14, 2009 2:07 pm

Yes yes and yes.

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 5:35 am

Here is the latest error :
Fatal error: Class 'antispam' not found in D:\Hosting\4574740\html\Forum\includes\functions.php on line 3824

Nice if I knew which file is looking for that.

Edit : All is well, board is fully restored - no loss of anything ( members, posts, etc....)

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 6:14 am

Sorry for taking so long to get back to you (was in dire need of sleep).

Glad to hear you got it sorted out.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 6:44 am

Sleep ? We'll get all the sleep we need when we're dead, ha ha.....

Now I just have to back up EVERYTHING ( db and folders / files ) and then take another run at it.
I think what happened is I stupidly and accidentally cross installed 2 mods simultaneously for the same thing....
So now, if I just really focus ( heh heh ) and pay attention to what the hell I'm doing, maybe it will go like it's supposed to.
I'm still a little amazed that I was able to restore it all to it's previous state, without losing any posts / members or undoing my custom theme......( which is to say I really don't know WHY it turned out so well )
I was sure that uploading all original files EXCEPT for the config.php, and the folders Files, Images and Store would result in everything being returned to it's vanilla state and dump my members / custom installed styles, etc.....

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 7:01 am

hehe didn't Bon Jovi say that? (tis one of my favourite songs ;))

We all mess up sometimes hehe.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 9:04 am

Well, ok - I THINK it's installed now....

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 9:17 am

Cool :)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 10:30 am

MysteryFCM wrote:Cool :)


Well, I was actually doing a bit of fishing there - which is to ask "Is there a way to verify it's installed and working ?"
Nothing acts different, nothing looks different, how do I know if I got it going properly ?
Wait to see if I get sent an e-mail ?

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 10:45 am

My apologies. You can verify it's working by picking a username or e-mail from one of the following, and trying to register for your forums with it;

http://botscout.com
http://stopforumspam.com
http://fspamlist.com

If the mod has been inserted correctly, it will present a message that the registration has been blocked.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 11:08 am

Your account has been created. However, this board requires account activation, an activation key has been sent to the e-mail address you provided. Please check your e-mail for further information.


I guess I'm not quite finished.........

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 11:22 am

Can you check the mod has been inserted into the file correctly;

imgSBST_phpBB3.gif
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 11:39 am

Everything SEEMS to be right, unless it's some weird issue with the placement of the spamchecker files / folders - even though the edited file correctly points to them

Edit : I guess I need to stop registering spammers to test this outt - so far I have registered 4 and none of them get blocked.....

Could this have something to do with the character recognition process ( what's that called again ?) defeating the mod ?
Last edited by Spewk on Wed Jul 15, 2009 12:02 pm, edited 1 time in total.

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 11:56 am

Can you give me the URL to the SBST folder on your domain, and a screenshot of the relevant section of functions_user.php please?
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 12:20 pm

http://www.bareknuckleblogger.net/Forum/spammerhammer

[img]http://www.bareknuckleblogger.net/Forum/spammerhammer
/images/shot1.JPG[/img]

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 12:31 pm

Doing a quick test, I believe it's actually being caused due to the advert that's inserted into all of the pages;

Code: Select all

StopForumSpam TRUE<script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>


http://www.bareknuckleblogger.net/Forum ... ame=volter
http://www.bareknuckleblogger.net/Forum ... t@test.com

Though it should still be picking up the fact TRUE is present.

Is it possible for you to turn off the adverts? (I see the adverts don't seem to be displayed on your forums?)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 1:05 pm

No, if I turn off the adverts they turn off my webserver......free hosting with domain name purchase.

And, yeah, damned if I get why those ads don't appear in my forum - but then I haven't stepped forward to ask them about it either, lol.............

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 1:18 pm

hehe can't say I blame you.

If possible, could you go into functions_user.php and change;

Code: Select all

   $fspamcheck = file_get_contents('http://www.bareknuckleblogger.net/Forum/spammerhammer/check_spammers_plain.php?name='.$username.'&email='.$email.'&ip='.$ip);
   if (strpos($fspamcheck, 'TRUE') !==False) {


To;

Code: Select all

   $fspamcheck = file_get_contents('http://www.bareknuckleblogger.net/Forum/spammerhammer/check_spammers_plain.php?name='.$username.'&email='.$email.'&ip='.$ip);
             die('RESP: '.$fspamcheck);
   if (strpos($fspamcheck, 'TRUE') !==False) {


Then try re-registering so we can see what it's returning? (should be able to come up with a resolution from there)

Once you've got the return value, you can change it back again, this is just to help with debugging. I'm guessing the script with the advert, is messing with the return value somehow, but need to see exactly how.

/edit

Forgot to change the URL to the URL relevant for your domain.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 1:27 pm

result is same.

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 1:47 pm

Ah, in that case, go into the cache folder and delete it's contents (remove the "die(..." line from functions_user.php first), then give it another try.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 1:58 pm

Delete everything ? even htaccess ?

same result again..

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 2:10 pm

Only the cache folder.

If it's the same after the cleaning the cache folder I'm afraid I'm running out of ideas. file_get_contents() is about the only thing left that I can think of.

In functions_user.php, could you try replacing;

Code: Select all

$fspamcheck = file_get_contents('http://www.bareknuckleblogger.net/Forum/spammerhammer/check_spammers_plain.php?name='.$username.'&email='.$email.'&ip='.$ip);


With;

Code: Select all

//$fspamcheck = file_get_contents('http://www.bareknuckleblogger.net/Forum/spammerhammer/check_spammers_plain.php?name='.$username.'&email='.$email.'&ip='.$ip);
$curl = @curl_init();
curl_setopt($curl, CURLOPT_URL, 'http://www.bareknuckleblogger.net/Forum/spammerhammer/check_spammers_plain.php?name='.$username.'&email='.$email.'&ip='.$ip);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$fspamcheck = @curl_exec($curl);
curl_close($curl);


/edit

Remember to delete EVERYTHING in the cache folder, after uploading the new functions_user.php file
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 2:19 pm

You are a madman freaking genius !!!

Everything working now !

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 2:26 pm

Good to hear :)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Wed Jul 15, 2009 2:31 pm

Now I just need to install the Photo Visual Captcha to stop the bots in their tracks and I'll REALLY be smokin'

Oh by the way, if you didn't get it from my last post - thanks man !

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Wed Jul 15, 2009 2:49 pm

hehe my pleasure :)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Thu Jul 16, 2009 1:19 pm

Well bad news status update - everything works until you try to enter a topic, then you get this :
Fatal error: Class 'antispam' not found in D:\Hosting\4574740\html\Forum\viewtopic.php on line 1496

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby MysteryFCM » Thu Jul 16, 2009 1:59 pm

That class is not part of the SBST mod??? ............ did you replace that file when restoring the other original files?

I've attached a copy of the viewtopic.php file we use here (you'll need to remember to clear the cache folder immediately after uploading this).

Note, the attached file is from the latest release of phpBB3
Attachments
viewtopic.zip
(14.77 KiB) Downloaded 132 times
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

Spewk
Posts: 27
Joined: Tue Jul 14, 2009 5:56 am
Contact:

Re: [CODE] Integrating the spam filter into phpBB3

Postby Spewk » Thu Jul 16, 2009 2:07 pm

Crap this is giving me a headache.
All I did was download the new file you posted, cleared the cache folder, closed the tab and opened a new one, tried to get into the forum and it tells me that config.php can't be found.

I think I'm just going to wipe the damn server and start over again.


Return to “Mods”

Who is online

Users browsing this forum: No registered users and 2 guests