[ABD] spam hammer: ends spam. period.

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.
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am

[ABD] spam hammer: ends spam. period.

Post by dangerousprototypes »

Modification Name: phpBB new user spam hammer (or something better...)

Modification Download: Author: DangerousPrototypes, based on the great work of Philthy and others. All automod packages made possible by Philthy. Thanks for making it happen!

Modification Description: This MOD places simple restrictions on new users to prevent spammers from posting what they want: links. We no longer need annoying captchas, registration questions, and user moderation with this mod. We even enabled guest posting. See the full documentation and feature description here.
  • * Disables external links and bad words in posts, messages, signatures, and profiles until a user reaches a specified age and/or number of posts
    * Own-site links are excluded from the filter, other sites can be added to a whitelist
    * Configurable list of forbidden filter words, optionally show the user the trigger term
    * Configurable unicode filters to prevent spam in languages not used in the forum
    * Prevents 'sleeper agents' by disabling posts, signatures, and profiles for old accounts with 0 posts (optional)
    * Zombie registration cleanup deletes old users with no posts (optional)
    *Log of all filter actions (optional)
    * Protections are 'automatically' disabled after the criteria are met (no moderation required)
NEW EXTREME mode:
You can hack the code to enable EXTREME mode with honeypot goodness... (not recommended for mortal SYSOPS!!!)
  • *Auto-delete 0 post users who try to post a profile
    *Auto-delete 0 post users who try to post a spammy signature
    *Auto-delete 0 post users who try to post a VERY spammy post (configurable link limit)
    *All EXTREME mode actions are automatically logged
Modification Version: package 0.0.3 (includes class from SVN r753)

Screenshots:
Image

Image

Image

Demo URL: http://www.dangerousprototypes.com/forum

This is a continuation of the work on the Disable links for new users mod.

Thanks to Philthy for providing the packaged version!

Here are some possible future features:
*Sliding window based on first post instead of registration date, gives admins more time to spot spammers before they strike
*Actually disable fields and submit button in user profile, scripts that submit anyways are auto-deleted :)

Suggestions and complaints accepted below.

AUTOMOD ISSUES
There are two minor automod issues:

SQL ERRORS ON UNINSTALL
*Several empty SQL errors on uninstall.
I googled but didnt see how to fix it.
You can:
1. Force uninstall anyways, it will just leave the settings in the database and they will be ignored.
2. Force uninstall and then go to phpmysql, etc, and delete the entries.

SQL ERRORS ON RE-INSTALL
*Duplicate entry errors on re-install
Related to above error: the entries are still in the settings database.
You can:
1. Force the install, your previous settings will be restored.
Last edited by dangerousprototypes on Thu Apr 21, 2011 5:56 pm, edited 1 time in total.
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am

Re: [RC-1] spam hammer: ends spam. period.

Post by dangerousprototypes »

I added a new section to the wiki with instructions specifically for the admin panel options:
http://dangerousprototypes.com/docs/Php ... figuration
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
hazymat
Registered User
Posts: 1
Joined: Sat Apr 16, 2011 2:37 pm

Re: [RC-1] spam hammer: ends spam. period.

Post by hazymat »

Automod. I have spent the last 60 mins of my life I will never get back trying to figure out why I have to:

- install a mod to install a mod
- troubleshoot my installation of automod
- research whether I should actually remove the automod install directory as it gives me an error in phpbb ACP unless I do, yet the automod official instructions don't specify this as part of the installation procedure
- troubleshoot my installation of automod (again)

... I still can't make automod work after following the instructions properly.

Sorry, I know this is very little to do with what looks like an excellent mod, except to say that it has really bugged me trying to actually use your mod because I can't get automod working.

I tried to install Spam Hammer manually using the instructions here but failed on the second step:

posting.php

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));
{
I can find the above IF statement but there are not three lines subsequent to this within the IF braces, there are hundreds.

Did you mean to add the modification *before* the closing brace?
Last edited by marian0810 on Sat Apr 16, 2011 3:20 pm, edited 1 time in total.
Reason: posts merged
Philthy
Registered User
Posts: 210
Joined: Tue Dec 27, 2005 10:05 am
Location: Dawlish, Devon

Re: [RC-1] spam hammer: ends spam. period.

Post by Philthy »

This is the the relevant section of my 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));
    //---------------------------------------------------------------//
    //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);
    //---------------------------------------------------------------//
	$post_data['username']			= utf8_normalize_nfc(request_var('username', $post_data['username'], true));
	$post_data['post_edit_reason']	= (!empty($_POST['edit_reason']) && $mode == 'edit' && $auth->acl_get('m_edit', $forum_id)) ? utf8_normalize_nfc(request_var('edit_reason', '', true)) : '';

	$post_data['orig_topic_type']	= $post_data['topic_type'];
I'll check the install instructions now.

Edit to add:
The install.xml instructions are correct, but there was an erroneous brace in the wiki entry, which I've corrected.
Hope this sorts your problem out?

Further edit to add:
I've never had a lot of luck with automod either. I prefer to manually edit, so that I have control of what gets modified.
Go on ! it's not as steep as it looks.....
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC-1] spam hammer: ends spam. period.

Post by 4_seven »

congrats, great mod :D
Current Mods | Mod Base | php(BB) programming | No help via PM
Philthy
Registered User
Posts: 210
Joined: Tue Dec 27, 2005 10:05 am
Location: Dawlish, Devon

Re: [RC-1] spam hammer: ends spam. period.

Post by Philthy »

hazymat wrote: I can find the above IF statement but there are not three lines subsequent to this within the IF braces, there are hundreds.

Did you mean to add the modification *before* the closing brace?
in /posting.php place the edit after this

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));
Note the brace has been removed.
Go on ! it's not as steep as it looks.....
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am

Re: [RC-1] spam hammer: ends spam. period.

Post by dangerousprototypes »

Thanks for the updates guys. I'm sorry, I forgot to get notified on this.

@hazymat - sorry about the automod issues. Were you able to complete it manually?

I'm going to ask for evaluation for the database.
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am

Re: [RC-1] spam hammer: ends spam. period.

Post by dangerousprototypes »

I validated the MOD and updated to v1.0.0 to pass the automated validation. There's no major changes to the source, but there are a few things changed:
*line endings changed to UNIX
*changed include_one() to include()
*removed unvalidated tag
*version number updates
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
User avatar
Sshadow
Registered User
Posts: 302
Joined: Thu Aug 20, 2009 3:54 pm
Name: Chris C.

Re: [RC-1] spam hammer: ends spam. period.

Post by Sshadow »

Great looking mod. Does anyone know if it is compatible with the Anti Spam ACP mod in the mods DB?
Chris/Admin
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am

Re: [RC-1] spam hammer: ends spam. period.

Post by dangerousprototypes »

Is there an update of anitspam ACP? I worked on this because that MOD was only on 3.0.6 or 7 when I needed it. This MOD will only work with 3.0.8.

I'm not sure if they can live together - does antispam ACP do any link blocking? They might edit the same files if that is true.

By the way: there is a minor update in SVN, if you set new_users_group_only=true the filter will only apply to new user group members. This give you a way to get a trusted user around the filter.

Also: This has been submitted to the MOD DB for approval, I have no idea how long it will take though :)
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
User avatar
Sshadow
Registered User
Posts: 302
Joined: Thu Aug 20, 2009 3:54 pm
Name: Chris C.

Re: [RC-1] spam hammer: ends spam. period.

Post by Sshadow »

Anti Spam ACP works with 3.0.8(as far as I have seen on this new forum I have started) but i haven't seen any "new" update. You can see here that there are no problems empirehostings.com/forum/ not trying to advertise. Just an example.

As far as I know it doesn't do any link blocking. It only flags certain things and it can also set a post to "moderation" based on spam words. It also provides control over profile fields and when they can be used. So maybe that may cause a conflict?

It would be perfect if these could be used in conjunction. I was just curious if anyone had tried it. If no one has then I will probably try it out tomorrow night just to see.
Chris/Admin
dangerousprototypes
Registered User
Posts: 91
Joined: Fri Feb 11, 2011 5:53 am

Re: [RC-1] spam hammer: ends spam. period.

Post by dangerousprototypes »

The word blocking and profile stuff might be a problem. I should look at the profile stuff to see if there is something we should include in this MOD (instead of the current way).

Please let us know how it turns out. You can also look at the install.xml files and see if they exit any of the same lines of the same files.

I would suggest that spam hammer is solid enough you won't need additional spam administration MODs ;)
Please do not PM or mail with questions. Ask in the forum where everyone can share the answer.
BlinkyBill01
Registered User
Posts: 20
Joined: Thu Mar 31, 2011 12:16 pm

Re: [RC-1] spam hammer: ends spam. period.

Post by BlinkyBill01 »

Is there a manual version of this? I do not use Automod.
Philthy
Registered User
Posts: 210
Joined: Tue Dec 27, 2005 10:05 am
Location: Dawlish, Devon

Re: [RC-1] spam hammer: ends spam. period.

Post by Philthy »

BlinkyBill01 wrote:Is there a manual version of this? I do not use Automod.
Download the mod from the link in the first post:
Spam hammer mod

Then just follow the instructions in the install_mod.xml
There is only one file to ftp, which is included.
It's very easy to install.
Go on ! it's not as steep as it looks.....
User avatar
thejdm
Registered User
Posts: 438
Joined: Sun Dec 21, 2003 4:18 pm
Location: pennsylvania

Re: [RC-1] spam hammer: ends spam. period.

Post by thejdm »

i must need to update my phpbb cause i dont have a cron.php file.
www.thejdm.com ...turn it on, y0

Return to “[3.0.x] Abandoned MODs”