[pLog-svn] r6703 - plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Jul 17 08:53:27 EDT 2008


Author: jondaley
Date: 2008-07-17 08:53:26 -0400 (Thu, 17 Jul 2008)
New Revision: 6703

Modified:
   plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/post.inc.php
Log:
we disable a couple checks

Modified: plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/post.inc.php
===================================================================
--- plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/post.inc.php	2008-07-17 12:52:08 UTC (rev 6702)
+++ plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/post.inc.php	2008-07-17 12:53:26 UTC (rev 6703)
@@ -4,8 +4,10 @@
 function bb2_post($settings, $package)
 {
 	// Check blackhole lists for known spam/malicious activity
-	require_once(BB2_CORE . "/blackhole.inc.php");
-	bb2_test($settings, $package, bb2_blackhole($package));
+        // LifeType mod by pwestbro: dns blacklist checks can be done in the 
+        // dnsantispam plugin.
+        //	require_once(BB2_CORE . "/blackhole.inc.php");
+        //	bb2_test($settings, $package, bb2_blackhole($package));
 
 	// MovableType needs specialized screening
 	if (stripos($package['headers_mixed']['User-Agent'], "MovableType") !== FALSE) {
@@ -48,8 +50,10 @@
 		// if ($screener + 5 > time())
 		//	return "408d7e72";
 		// Posting too slow? 48 hr
-		if ($screener + 172800 < time())
-			return "b40c8ddc";
+            // LifeType mod by jondaley: since pages can be cached, the cookie might not be updated
+            // and this can get tripped incorrectly
+            // if ($screener + 172800 < time())
+            // return "b40c8ddc";
 
 		// Screen by IP address
 		$ip = ip2long($package['ip']);



More information about the pLog-svn mailing list