$page_template = "
De Nationale Weblogspam-Test
De Nationale Weblogspam-Test
Welkom bij de nationale weblogspam-test. Deze test test of u een potentiële weblogspammer bent. De test begint nu... De test is klaar.
Onze test wijst uit dat u [G]een potentiële weblogspammer bent.
© 2006 - Arduenn van Het Zwarte Bos
";
$content["[G]"] = "g";
if (blogspammer($_SERVER["REMOTE_ADDR"])) $content["[G]"] = "";
$page_layout = strtr($page_template, $content);
echo $page_layout;
function blogspammer($ip) {
$analysis_site = "www.ripe.net/perl/whois?searchtext=";
$analysis = file_get_contents("http://$analysis_site$ip");
$anonymous_signature = "country is really worldwide";
if(strstr($analysis, $anonymous_signature)) return(true);
}
?>