Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip = $_SERVER['REMOTE_ADDR'];
- $details = json_decode(file_get_contents("http://ipinfo.io/{$ip}"));
- if($details->country == "CN")
- die("Китаёз заблокировали тут :(");
- //остальной контент
- //...
- ?>
Advertisement
Add Comment
Please, Sign In to add comment