[ABD] phpBB spam hammer

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Philthy
Registered User
Posts: 210
Joined: Tue Dec 27, 2005 10:05 am
Location: Dawlish, Devon
Contact:

Re: [DEV] phpBB spam hammer

Post by Philthy »

Presumably setting this value in the class to false, will turn off the extreme mode?

Code: Select all

private $extreme=true; //deletes accounts for profile abuse
Go on ! it's not as steep as it looks.....
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am
Contact:

Re: [DEV] phpBB spam hammer

Post by dangerousprototypes »

Here are some log examples:

AWed Feb 23, 2011 5:09 pm {Spam hammer: deleted MeredithKM for profile abuse.}
Wed Feb 23, 2011 5:09 pm {Spam hammer: CHECKED PROFILE of 'MeredithKM'. DETECTED: profile disabled, ERRORS: Antispam: You can't have a profile yet. You need to post a few times first. Click for help.}

Wed Feb 23, 2011 5:07 pm {Spam hammer: deleted TimyrPlaipsy for profile abuse.}
Wed Feb 23, 2011 5:07 pm {Spam hammer: CHECKED PROFILE of 'TimyrPlaipsy'. DETECTED: profile disabled, ERRORS: Antispam: You can't have a profile yet. You need to post a few times first. Click for help.}

Wed Feb 23, 2011 5:03 pm {Spam hammer: CHECKED POST of 'Anonymous'. DETECTED: links, bad words, ERRORS: Your post looks too spamy for a new user, please remove off-site URLs. Click for help., Your post looks too spamy for a new user, please remove bad words or non-english text. (porn) Click for help. CONTENTS: порнофильм данилова.......HUGE LINK LIST REMOVED......}

Wed Feb 23, 2011 4:57 pm {Spam hammer: CHECKED POST of 'Anonymous'. DETECTED: too few words, ERRORS: Antispam: Sorry, your first post needs to be just a little longer. Click for help. CONTENTS: viagrathanks for this tips}

Wed Feb 23, 2011 4:57 pm {Spam hammer: CHECKED POST of 'Anonymous'. DETECTED: too few words, ERRORS: Antispam: Sorry, your first post needs to be just a little longer. Click for help. CONTENTS: viagrathanks for this tips}

Wed Feb 23, 2011 4:56 pm {Spam hammer: CHECKED POST of 'Anonymous'. DETECTED: too few words, ERRORS: Antispam: Sorry, your first post needs to be just a little longer. Click for help. CONTENTS: viagrathanks for this tips}

Wed Feb 23, 2011 4:56 pm {Spam hammer: CHECKED POST of 'Anonymous'. DETECTED: too few words, ERRORS: Antispam: Sorry, your first post needs to be just a little longer. Click for help. CONTENTS: viagrathanks for this tips}
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

So im guessing you all cant provide support or help install?
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am
Contact:

Re: [DEV] phpBB spam hammer

Post by dangerousprototypes »

heredia21 wrote:So im guessing you all cant provide support or help install?
How did you try to install it? With automod or manually editing your files? I'd highly recommend you read the wiki and then manually mod the files. I find it a wonder that automod works at all :)
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

I read the wiki and i did manually edit. I never use automod.
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
Philthy
Registered User
Posts: 210
Joined: Tue Dec 27, 2005 10:05 am
Location: Dawlish, Devon
Contact:

Re: [DEV] phpBB spam hammer

Post by Philthy »

heredia21 wrote:So im guessing you all cant provide support or help install?
On your forum, there is a conflict with your jscript quick reply.
I'd suggest deleting my previous mod, and installing this one instead.

@DP I've update the install again, with the new class, and updated instructions on how to enable the extreme version of the class.
Go on ! it's not as steep as it looks.....
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

You all didnt include function filter in latest .3 version.
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
Philthy
Registered User
Posts: 210
Joined: Tue Dec 27, 2005 10:05 am
Location: Dawlish, Devon
Contact:

Re: [DEV] phpBB spam hammer

Post by Philthy »

heredia21 wrote:You all didnt include function filter in latest .3 version.
:?
functions_link_filter.php is included in the root/includes/ folder ?
The latest version is 0.0.2
Go on ! it's not as steep as it looks.....
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

I see it. I am going to try and reinstall again.
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

Ok now when i try to postwith test account i get this. What do i do.

Antispam: account disabled, please contact an admin.
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am
Contact:

Re: [DEV] phpBB spam hammer

Post by dangerousprototypes »

That means the account is older than the min day, but has 0 posts.
1 - create a new test account
2 - turn 'disable sleeper agents' off in ACP
3 - increase min days in ACP

This and the other settings are thoroughly documented on the wiki.
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

Saw that turned it off. Works good so far. Just that in my jquery quickreply i am able to post links. Any fix for this?
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am
Contact:

Re: [DEV] phpBB spam hammer

Post by dangerousprototypes »

Sorry, I didn't understand that you meant an ajax reply box (non phpbb standard) when you reported that bug earlier. No, this mod will not protect that.

Sure, it can be applied though. Follow the example the MOD uses to check posts and apply it to the similar code in your other MOD.

Find in /posting.php:

Code: Select all

if ($submit || $preview || $refresh)
{
    $post_data['topic_cur_post_id']    = request_var('topic_cur_post_id', 0);
    $post_data['post_subject']        = utf8_normalize_nfc(request_var('subject', '', true));
    $message_parser->message        = utf8_normalize_nfc(request_var('message', '', true));
{
Add under:

Code: Select all

    //---------------------------------------------------------------//
    //check for URLs and bad words in new user post
    require($phpbb_root_path . 'includes/functions_link_filter.' . $phpEx);
    $f= new link_filter; //new link filter
    if($f->link_filter_test_post($message_parser->message, $post_data['post_subject']))//run the check
    {
    $error = array_merge($error, $f->error);//add the errors to the error array, if any
    }
    unset($f);
    //---------------------------------------------------------------//
You will need to figure out what the MOD calls the subject and message:
$message_parser->message, $post_data['post_subject']
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

Hmm well its not really a mod it just loads the text up. This is what I use. http://www.phpbb.com/community/viewtopi ... &t=2116535
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [DEV] phpBB spam hammer

Post by heredia21 »

dangerousprototypes wrote:Sorry, I didn't understand that you meant an ajax reply box (non phpbb standard) when you reported that bug earlier. No, this mod will not protect that.

Sure, it can be applied though. Follow the example the MOD uses to check posts and apply it to the similar code in your other MOD.

Find in /posting.php:

Code: Select all

if ($submit || $preview || $refresh)
{
    $post_data['topic_cur_post_id']    = request_var('topic_cur_post_id', 0);
    $post_data['post_subject']        = utf8_normalize_nfc(request_var('subject', '', true));
    $message_parser->message        = utf8_normalize_nfc(request_var('message', '', true));
{
Add under:

Code: Select all

    //---------------------------------------------------------------//
    //check for URLs and bad words in new user post
    require($phpbb_root_path . 'includes/functions_link_filter.' . $phpEx);
    $f= new link_filter; //new link filter
    if($f->link_filter_test_post($message_parser->message, $post_data['post_subject']))//run the check
    {
    $error = array_merge($error, $f->error);//add the errors to the error array, if any
    }
    unset($f);
    //---------------------------------------------------------------//
You will need to figure out what the MOD calls the subject and message:
$message_parser->message, $post_data['post_subject']
Hmm im already using this

Code: Select all

    //---------------------------------------------------------------//
    //check for URLs and bad words in new user post
    require($phpbb_root_path . 'includes/functions_link_filter.' . $phpEx);
    $f= new link_filter; //new link filter
    if($f->link_filter_test_post($message_parser->message, $post_data['post_subject']))//run the check
    {
    $error = array_merge($error, $f->error);//add the errors to the error array, if any
    }
    unset($f);
    //---------------------------------------------------------------//
Isnt it the same?

Update.. I see the any added. Do i replace that? Or add on to it. Most of it is the same.
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
Locked

Return to “[3.0.x] Abandoned MODs”