Hello,
Use this code to block foreigners on your retro, it's made with PHP. It allows only Dutch and Belgium IP adresses.
Code:<?php $ip=$_SERVER['REMOTE_ADDR']; $landCodes=array( "nl"=>"nederland", "be"=>"belgie", ); $gethostbyaddr=gethostbyaddr($ip); if($gethostbyaddr==$ip) { exit("forbidden"); } $explode=explode(".",$gethostbyaddr); foreach($explodeas$key) { $ext=$key; } $land=$landCodes[$ext]; if(empty($land)) { $land="onbekend"; } if($land=='nederland'||$land=='belgie') { } else { exit("forbidden"); } ?>
Cheers!


![Block foreigners [Any CMS]](http://ragezone.com/hyper728.png)


