Block spam URL’s
This is a simple php mod i have made in order to block certain websites from submitting to my directory after i started getting a few spam submissions.
Open submit.php and Find
$data['URL'] = "http://".$data['URL'];
Add below
require_once 'spamlist.php';
—————————-
Create a file called “spamlist.php” and insert the following
<?
$bansite[0] = 'aceroot.info';
$bansite[1] = 'orgfree.com';
$bansite[2] = 'ase3dj.info';
// add more above if needed
$count = count($bansite);
for($i = 0; $i <= $count-1; $i++)
{
if (strpos($data['URL'], $bansite[$i]) == True)
{
echo "<h1>The domain $bansite[$i] is banned for spamming</h1>";
exit;
}
}
//if [/URL] or http:// is found in description then stop and exit.
if (strpos($data['DESCRIPTION'], "[/URL]") == True){exit;}
if (strpos($data['DESCRIPTION'], "[/url]") == True){exit;}
if (strpos($data['DESCRIPTION'], "http://") == True){exit;}
?>
——— Upload both files

