I can block the occasional spammer. You can do this by adding this between the PHP tags
$blacklist = array( // add banned IPs to this list
"127.0.0.1",
);
if(in_array($ip, $blacklist)) {
echo "<h1>Avaunt, spammer!</h1>";
exit ();
}
I can block the occasional spammer. You can do this by adding this between the PHP tags
$blacklist = array( // add banned IPs to this list
"127.0.0.1",
);
if(in_array($ip, $blacklist)) {
echo "<h1>Avaunt, spammer!</h1>";
exit ();
}