svn: /web/php/trunk/ include/shared-manual.inc manual/add-note.php

From: Date: Mon, 01 Aug 2011 04:25:30 +0000
Subject: svn: /web/php/trunk/ include/shared-manual.inc manual/add-note.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11817@lists.php.net to get a copy of this message
philip Mon, 01 Aug 2011 04:25:30 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=314006 Log: Removed the old kill_spammer() tool. The world is now spam free! Changed paths: U web/php/trunk/include/shared-manual.inc U web/php/trunk/manual/add-note.php Modified: web/php/trunk/include/shared-manual.inc =================================================================== --- web/php/trunk/include/shared-manual.inc 2011-08-01 03:42:02 UTC (rev 314005) +++ web/php/trunk/include/shared-manual.inc 2011-08-01 04:25:30 UTC (rev 314006) @@ -591,23 +591,3 @@ site_footer(); } -/** - * Block specific static IP addresses known to do nothing - * but make our lives more difficult. 27-APR-2010 <danbrown> - * Expects: $ip - * Returns: $ip on blacklist, false on clear. - */ -function kill_spammer($ip) { - - // Bad IPs - $bad = array( - '66.51.252.15', - ); - - // If the IP is blocked, return the IP address. - if (in_array($ip,$bad)) { - return $ip; - } - - return false; -} Modified: web/php/trunk/manual/add-note.php =================================================================== --- web/php/trunk/manual/add-note.php 2011-08-01 03:42:02 UTC (rev 314005) +++ web/php/trunk/manual/add-note.php 2011-08-01 04:25:30 UTC (rev 314006) @@ -1,40 +1,6 @@ <?php // $Id$ -/** - * Before we even bother to initilize this script, let's - * see if this is a submission by an IP known to send SPAM. - * If so, admonish them and halt execution. 27-APR-2010 <danbrown> - */ -include dirname(__FILE__).'/include/spam-func.php'; -if (kill_spammer($_SERVER['REMOTE_ADDR']) !== false) { - echo " <center> - h1>WHOA!</h1> - - Enough is enough, pal. All you do is make - our jobs and lives more difficult with your - constant reposting of SPAM and/or useless - material. And you know what? We're sick of - it! Consider yourself blacklisted from ever - posting here again.<br /> - <br /> - - Think this is some kind of joke? It's not.<br /> - <br /> - - Think this is some kind of mistake? Well, if you - haven't been submitting junk to the site, submit - this as a bug at <a href=\"http://bugs.php.net/\">http://bugs.php.net/</a> - with the following message:<br /> - <br /> - - <i>Improper Blocking: ".strrev(str_replace('.','-',$_SERVER['REMOTE_ADDR']))."</i><br /> - <br /> - - Bye! - </center>"; -} - $ip_spam_lookup_url = 'http://www.dnsbl.info/dnsbl-database-check.php?IP='; $_SERVER['BASE_PAGE'] = 'manual/add-note.php';

« previous php.webmaster (#11817) next »