Advanced Block MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: Advanced Block MOD

Post by Martin Truckenbrodt » Wed Sep 02, 2009 9:32 pm

Hello,
if you are interested in more information about ths MOD please look here: http://www.martin-truckenbrodt.com/cgi/ ... f=48&t=224 .

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!!!

pattyjean78
Registered User
Posts: 102
Joined: Tue Jan 23, 2007 2:20 am
Location: riding a dragon

Re: Advanced Block MOD

Post by pattyjean78 » Sun Sep 13, 2009 8:44 pm

Will the code to add the timezone trick work alone? or must it be installed with everything else?
AV : ticklishdesigns - Site is gone

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

Re: Advanced Block MOD

Post by Martin Truckenbrodt » Mon Sep 14, 2009 10:36 am

Hello,
it can be used alone. Just disable the DNSBL CHECK at the ACP under Security Settings.
But the UTC -12 trick doesn't catch all!

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: Advanced Block MOD

Post by Martin Truckenbrodt » Thu Sep 24, 2009 8:55 pm

Hello,
last weeks I've got good results with a special BB/forum DNSBL: http://www.martin-truckenbrodt.com/cgi/ ... p=624#p624

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!!!

fortmoe
Registered User
Posts: 15
Joined: Wed Jan 09, 2008 8:24 am

Re: Advanced Block MOD

Post by fortmoe » Thu Oct 22, 2009 7:15 am

I just installed this mod and get the following error when the Check IP against DNS Blackhole List in Security Settings is checked on.
Fatal error: Call to a member function sql_query() on a non-object in /home3/bowtieco/public_html/fortmoe/forum/includes/session.php on line 1228
here is the sessions code for that area:

Code: Select all

			if ($ip)
		{
			$quads = explode('.', $ip);
			$reverse_ip = $quads[3] . '.' . $quads[2] . '.' . $quads[1] . '.' . $quads[0];

			// Need to be listed on all servers...
			$weight = 0;
			$info = array();

			if ($mode == 'register')
			{
				$sql_where = '';
			}
			else
			{
				$sql_where = " AND dnsbl_register = '0'";
			}

			$sql = 'SELECT dnsbl_id, dnsbl_fqdn, dnsbl_lookup, dnsbl_weight FROM ' . DNSBL_TABLE . "
				WHERE dnsbl_weight > '0'" . $sql_where . '
				ORDER BY left_id ASC';

			$result = $db->sql_query($sql);

			while ($row = $db->sql_fetchrow($result))
			{
				if (phpbb_checkdnsrr($reverse_ip . '.' . $row['dnsbl_fqdn'] . '.', 'A') === true)
				{
					$info = array($row['dnsbl_fqdn'], $row['dnsbl_lookup'] . $ip);
					if ($config['log_check_dnsbl'])
					{
						add_log('block', $row['dnsbl_id'], 'LOG_DNSBL_FOUND', $row['dnsbl_fqdn']);
					}
					$weight += $row['dnsbl_weight'];
				}
				if ($weight > 4)
				{
					break;
				}
Line 1228 is:

Code: Select all

$result = $db->sql_query($sql);
I am running version 3.05

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

Re: Advanced Block MOD

Post by Martin Truckenbrodt » Thu Oct 22, 2009 4:38 pm

Hello,
did you ran both of the the UMIL install files? DIY instrcutions !
Perhaps your DNSBL table phpbb_dnsbl is empty. For an updated DNSBL list please look here: http://www.martin-truckenbrodt.com/cgi/ ... p=589#p589 - the whole topic.

Please give me a feedback! It seems that I have to add a check if the table is empty or not.

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!!!

fortmoe
Registered User
Posts: 15
Joined: Wed Jan 09, 2008 8:24 am

Re: Advanced Block MOD

Post by fortmoe » Thu Oct 22, 2009 7:11 pm

I did run the two files and I have checked the phpbb_dnsbl table with phpMyAdmin and it does have 11 entries.

I have tried clearing the table and using your updated table but get the same message.

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

Re: Advanced Block MOD

Post by Martin Truckenbrodt » Thu Oct 22, 2009 8:28 pm

Hello fortmoe,
I can't find a problem in your code.
So please send me your session.php file per email to webmaster@martin-truckenbrodt.com . I will check it for you.

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: Advanced Block MOD

Post by Martin Truckenbrodt » Thu Oct 22, 2009 8:46 pm

Hello fortmoe,
I think I've found the problem. Please check if you have done this:

Code: Select all

	<open src="includes/session.php">
		<edit>
			<find><![CDATA[	function check_dnsbl($mode, $ip = false)
	{
]]></find>
			<action type="after-add"><![CDATA[		global $db, $config;
]]></action>
		</edit>
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!!!

fortmoe
Registered User
Posts: 15
Joined: Wed Jan 09, 2008 8:24 am

Re: Advanced Block MOD

Post by fortmoe » Thu Oct 22, 2009 9:21 pm

That's it! It seems to work now.

Thank you very much! :mrgreen:

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

Re: Advanced Block MOD

Post by Martin Truckenbrodt » Thu Oct 22, 2009 9:31 pm

Hello fortmoe,
no problem!

Please give a feedback for the MOD in some weeks.

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!!!

GameVixenZone
Registered User
Posts: 166
Joined: Mon Aug 17, 2009 9:26 am

Re: Advanced Block MOD

Post by GameVixenZone » Sat Oct 31, 2009 4:31 am

I don't know if it is just me, but people have been emailing me saying they get blocked. Even when it's just one site that claims they are spammer. What do you set the weight system to, to make it so it has to be picked up by at least 2 sites before they are blocked?

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

Re: Advanced Block MOD

Post by Martin Truckenbrodt » Sat Oct 31, 2009 10:34 am

Hello GameVixenZone,
are you using this list of DNSBLs: http://www.martin-truckenbrodt.com/cgi/ ... p=589#p589 + next post?
If no, just use this list. I haven't got any false positives with this list by now.
If yes, please tell me which DNSBL is blocking the registration. It will be a important feedback for me, too!

The MOD checks the several DNSBLs till a weight of 5 is reached. Then the registration will be blocked by the DNSBL check.
So just give the critical DNSBL a weight lower than 5. But you have to know which DNSBL makes the problem. Just call the user you got the feedback from or look at the block log under ACP -> Maintenance. Perhaps you can call the user for the ISP he is using. So you can click on the IP addresses at the block log to get the FQDNs (hostnames) to try to find the related entry.
More information: http://www.martin-truckenbrodt.com/cgi/ ... f=48&t=216

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!!!

espradley
Registered User
Posts: 2
Joined: Thu Nov 12, 2009 1:28 am

Re: Advanced Block MOD

Post by espradley » Thu Nov 12, 2009 1:30 am

When running the first umil_auto_dnsbl.php I get the following error code:

Code: Select all

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/dlg/public_html/support/includes/acp/info/acp_logs.php on line 34
Here is the code:

Code: Select all

function install()
	{				
	
					'block'		=> array('title' => 'ACP_BLOCK_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
					'critical'	=> array('title' => 'ACP_CRITICAL_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
			     	



	}

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

Re: Advanced Block MOD

Post by Martin Truckenbrodt » Thu Nov 12, 2009 11:36 am

Hello esperadly,
you've done the edit on the wrong place. The code should like this code:

Code: Select all

	function module()
	{
		return array(
			'filename'	=> 'acp_logs',
			'title'		=> 'ACP_LOGGING',
			'version'	=> '1.0.0',
			'modes'		=> array(
				'admin'		=> array('title' => 'ACP_ADMIN_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
				'mod'		=> array('title' => 'ACP_MOD_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
				'users'		=> array('title' => 'ACP_USERS_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
				'critical'	=> array('title' => 'ACP_CRITICAL_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
				'block'		=> array('title' => 'ACP_BLOCK_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
			),
		);
	}

	function install()
	{
	}
The new line needs to be added to the function before.

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] MOD Database Releases”