[MODDB] Advanced Block MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

[MODDB] Advanced Block MOD

Post by Martin Truckenbrodt » Sat Apr 18, 2009 12:39 pm

Modification Name: Advanced Block MOD
Author: Martin Truckenbrodt

Modification Description:: The MOD adds more DNS blacklists (DNSBL) to phpBB3 to block more spammers while registration and posting.
A user friendly UTC -12 check is added.
All block actions are logged in a new Block log and can be activated separately.
Modification Version:: 1.0.2

Requirements: None

Features:
  • The blacklists will be added and managed by ACP. (phpBB3 by default has two lists hard-coded in includes/session.php)
  • There is a weight system with a threshold value of 5. So you can give blacklists a lower weight that results that some blacklists have to work together with other blacklists . E.g. I've set dnsbl-2.uceprotect.net and dnsbl-3.uceprotect.net to weight value 2 cause they are listing IP address ranges and not single IPs. So the IP address have to be listed in one more blacklist to get blocked by phpBB3.
  • If available, lookup links can be provided to the log entries and the block message, too.
  • On user registration two wrong timezones are added to the begin and the end of the timezone dropdown menue to block most of the spammers which in most cases are always using the first entry of the dropdown menue. (Without this MOD UTC -12.)
  • All positive DNSBL and DNS MX block actions done by includes/session.php are added to a new log called Block log visible under ACP->Maintenance.
  • Timezone check, all blacklists and the block logs can be disabled by ACP.
  • UMIL support
Screenshots: Demo URL: http://www.martin-truckenbrodt.com/cgi/phpBB3
Demo Username: N/A
Demo Password: N/A

Modification Download: http://www.phpbb.com/customise/db/mod/a ... block_mod/ The MOD has been validated on 21th June 2009. :)
Last edited by Martin Truckenbrodt on Mon Jun 22, 2009 7:23 pm, edited 14 times in total.
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [RC] More DNS Blacklists MOD

Post by Martin Truckenbrodt » Sun Apr 19, 2009 9:55 pm

Hello,
I've done version 0.0.1! :)

Please use the download link from the first post of this topic.

Please look at the important notice added to the MOD release post on my website!

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

armatec
Registered User
Posts: 50
Joined: Sat Mar 14, 2009 7:44 pm

Re: [BETA] More DNS Blacklists MOD

Post by armatec » Mon Apr 20, 2009 2:11 am

issues so far
Open: includes/constants.php

Code: Select all

Find
define(define('LOG_USERS', 3);
Open: includes/functions_admin.php

Code: Select all

Find
		case 'critical':
			$log_type = LOG_CRITICAL;
			$sql_forum = '';
		break;
Add after
		if ($row['dnsbl_id'])
		{
			$dnsbl_id_list[] = $row['dnsbl_id'];
		}

Code: Select all

Find
		case 'block':
			$log_type = LOG_BLOCK;
			$sql_forum = '';
		break;
Add after
		if ($row['dnsbl_id'])
		{
			$dnsbl_id_list[] = $row['dnsbl_id'];
		}

ok above are issues i found in the install file i also have an issue with the ACP i can see DNSBL settings in Server configuration ==> DNSBL settings but there is no DNSBL log in the Maintenance

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [BETA] More DNS Blacklists MOD

Post by Martin Truckenbrodt » Mon Apr 20, 2009 6:29 pm

Hello armatec,
thank you very much for your feedback!
It seems that is was to late for me last night.
I've fixed some bugs and I've released 0.0.2 now.

Please notice: I've renamed the DNSBL log to Block log in 0.0.1 cause I have added logging for the DNS MX check, too. The former linked screenshot is outdated.

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

armatec
Registered User
Posts: 50
Joined: Sat Mar 14, 2009 7:44 pm

Re: [BETA] More DNS Blacklists MOD

Post by armatec » Tue Apr 21, 2009 5:23 am

Error in file edit file name

Code: Select all

adm/style/acp_logs.html.php
also you chnaged the name of the umil_auto_dnsbl.php so you need to change then DIY info

Listed

Code: Select all

umil_auto_dnsbl_list.php
Needs to be

Code: Select all

umil_auto_dnsbl.php

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [BETA] More DNS Blacklists MOD

Post by Martin Truckenbrodt » Tue Apr 21, 2009 4:14 pm

Hello armatec,
thanks a lot again for your feedback!

For the two minor bugs I've done a post to the release topic on my board. Before I will release a next version I will wait for more feedback.

Is the MOD running on your board now?
What are your impressions?

Bye Martin
Last edited by Martin Truckenbrodt on Wed Apr 22, 2009 11:26 am, edited 1 time in total.
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

armatec
Registered User
Posts: 50
Joined: Sat Mar 14, 2009 7:44 pm

Re: [BETA] More DNS Blacklists MOD

Post by armatec » Tue Apr 21, 2009 9:37 pm

Well Ive not ha a hit yet but I'm running my security module I'm building
What could be cool would be a centralize update system that will check the current blocks against an updated sql query hosted on your site

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [BETA] More DNS Blacklists MOD

Post by Martin Truckenbrodt » Wed Apr 22, 2009 4:04 pm

Hello armatec,
I have problems to understand what you mean. My native language is german.

I think it's very comfortable to use professional Blacklists online. You don't have a lot of traffic for this. Blacklist request are DNS requests. An these are very small and quick.
I think it's not a good idea to take the lists into our databse. I think there is no need for.

But a special central bulletin board or special phpBB3 Blacklist would be a great idea!
And a centrla database to ask for spammer user names would be although a good idea.

I will make 0.0.3 next days. I will include a UTC -12 cchek, too.

Does anybody else have tried my MOD?

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [RC] Advanced Block MOD

Post by Martin Truckenbrodt » Mon Apr 27, 2009 7:20 pm

Hello,
I've renamed the MOD to Advanced Block MOD.

And I've released 1.0.0. Download link see a the first post of this topic.

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [RC] Advanced Block MOD

Post by Martin Truckenbrodt » Tue Apr 28, 2009 6:23 pm

Hello,
I've done 1.0.1.

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

killerhamster08
Registered User
Posts: 8
Joined: Sun Apr 19, 2009 12:56 pm
Contact:

Re: [RC] Advanced Block MOD

Post by killerhamster08 » Tue Apr 28, 2009 7:03 pm

so i test it and it's nice, very nice;)

User avatar
Ashley.S.
Registered User
Posts: 468
Joined: Mon Aug 04, 2008 6:01 pm
Location: Falmouth, Cornwall, UK
Name: Ashley .S.
Contact:

Re: [RC] Advanced Block MOD

Post by Ashley.S. » Fri May 08, 2009 3:07 pm

I'm going to keep a close eye on this mod
Regards,
-Ashley.S. [ ProphpBB Free Forum Hosting Moderator ]

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [RC] Advanced Block MOD

Post by Martin Truckenbrodt » Thu May 14, 2009 8:40 pm

Hello,
I've released and sent to phpbb.com MOD DB 1.0.2. Download link see on first post.

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

User avatar
Ashley.S.
Registered User
Posts: 468
Joined: Mon Aug 04, 2008 6:01 pm
Location: Falmouth, Cornwall, UK
Name: Ashley .S.
Contact:

Re: [RC] Advanced Block MOD

Post by Ashley.S. » Fri May 15, 2009 1:01 pm

Martin Truckenbrodt wrote:Hello,
I've released and sent to phpbb.com MOD DB 1.0.2. Download link see on first post.

Bye Martin
Nice, I'm going to try installing this to my forums later today

EDIT: I just had a quick look at the install file and I don't understand this:

Find:

Code: Select all

	'CHECK_DNSBL_EXPLAIN'			=> 'If enabled the user’s IP address is checked against the following DNSBL services on registration and posting: <a href="http://spamcop.net">spamcop.net</a> and <a href="http://www.spamhaus.org">www.spamhaus.org</a>. This lookup may take a while, depending on the server’s configuration. If slowdowns are experienced or too many false positives reported it is recommended to disable this check.',
In Line Find:

Code: Select all

the following DNSBL services on registration and posting: <a href="http://spamcop.net">spamcop.net</a> and <a href="http://www.spamhaus.org">www.spamhaus.org</a>
In Line Replace With:

Code: Select all

DNSBL services on registration and posting
I could not find the line :? I have not installed the mod at all, so should'nt that be in an upgrade.xml file or something and in place have the instructions as to where you should add the line :?
Regards,
-Ashley.S. [ ProphpBB Free Forum Hosting Moderator ]

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: [RC] Advanced Block MOD

Post by Martin Truckenbrodt » Fri May 15, 2009 4:02 pm

Hello Ashley,
it's language/en/acp/board.php.
just look for:

Code: Select all

'CHECK_DNSBL_EXPLAIN'
The edited line schould look like:

Code: Select all

	'CHECK_DNSBL_EXPLAIN'			=> 'If enabled the user’s IP address is checked against DNSBL services on registration and posting. This lookup may take a while, depending on the server’s configuration. If slowdowns are experienced or too many false positives reported it is recommended to disable this check.',
http://www.phpbb.com/mods/installing/

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

Locked

Return to “[3.0.x] MODs in Development”