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

From: Date: Sun, 31 Jul 2011 18:00:25 +0000
Subject: svn: /web/php/trunk/ include/shared-manual.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11813@lists.php.net to get a copy of this message
philip Sun, 31 Jul 2011 18:00:25 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=313996 Log: Moved kill_spammer() to shared-manual, as the manual/ namespace is cluttered with lang dirs. Changed paths: U web/php/trunk/include/shared-manual.inc D web/php/trunk/manual/include/ Modified: web/php/trunk/include/shared-manual.inc =================================================================== --- web/php/trunk/include/shared-manual.inc 2011-07-31 17:46:50 UTC (rev 313995) +++ web/php/trunk/include/shared-manual.inc 2011-07-31 18:00:25 UTC (rev 313996) @@ -591,3 +591,23 @@ 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; +}

« previous php.webmaster (#11813) next »