- file_get_contents: documentation ( source)
- get_headers: documentation ( source)
<?php
get_headers('https://freegeoFFFip.net/json/');
get_headers('https://freegeoip.net/json/');
print (file_get_contents('https://freegeoFFFip.net/json/'));
print (file_get_contents('https://freegeoip.net/json/114.198.15.117'));
?>