1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00

Removed the old kill_spammer() tool. The world is now spam free!

This commit is contained in:
Philip Olson
2011-08-01 04:25:30 +00:00
parent 7fe5df4dd4
commit 86b7eb76e8
2 changed files with 0 additions and 54 deletions

View File

@@ -591,23 +591,3 @@ function manual_footer_beta() {
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;
}

View File

@@ -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';