GeoIP
$ curl 'https://api.geoip.dk'
Fine print
You can use it without limit (even if you're doing millions of requests per minute)
Uses Nginx GeoIP module,
Cloudflare
and
Netlify
No visitor information is ever logged
PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
<?php
$data = file_get_contents('https://api.geoip.dk');
print_r($data);
view raw
example.php
hosted with ❤ by
GitHub