ציטוט:
נכתב במקור על ידי HHaim
PHP קוד:
<?php
$content = file_get_contents("http://api.hostip.info/");
preg_match("#<countryName>(.*)</countryName>#i", $content, $match);
if( strtolower($match[1]) == "israel" )
{
die("Your from israel and your blocked!");
}
?>
הרגע רשמתי (בPHP), תהנה
|
הקוד הזה יבדוק אם השרת הוא בישראל ולא אם המשתמש הוא בישראל....