diff options
author | Christian Cleberg <hello@cmc.pub> | 2025-03-11 18:25:56 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cmc.pub> | 2025-03-11 18:25:56 -0500 |
commit | 3a3b6791dc55dc9c2670ac1a12bef64785512e8a (patch) | |
tree | 88089cc718d5f9b227bf7cde6fed11b3c4848156 | |
parent | f384015ca077af895065875233b747a7ed22229f (diff) | |
download | ifconfig.php-3a3b6791dc55dc9c2670ac1a12bef64785512e8a.tar.gz ifconfig.php-3a3b6791dc55dc9c2670ac1a12bef64785512e8a.tar.bz2 ifconfig.php-3a3b6791dc55dc9c2670ac1a12bef64785512e8a.zip |
move from cleberg.net to cmc.pub
-rw-r--r-- | .!33817!GeoLite2-City.mmdb | 0 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | ifconfig.php | 14 |
3 files changed, 12 insertions, 12 deletions
diff --git a/.!33817!GeoLite2-City.mmdb b/.!33817!GeoLite2-City.mmdb new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.!33817!GeoLite2-City.mmdb @@ -8,10 +8,10 @@ Available all basic features such as output in HTML, plain text, XML and JSON. By default it will be in HTML. Also it is possible to request single values. Visit some of the links below to view it in action: -* [all in plain text](http://ip.cleberg.net?q=text) -* [all in xml](http://ip.cleberg.net?q=xml) -* [ip address only](http://ip.cleberg.net?q=ip) -* [useragent only](http://ip.cleberg.net?q=ua) +* [all in plain text](http://ip.cmc.pub?q=text) +* [all in xml](http://ip.cmc.pub?q=xml) +* [ip address only](http://ip.cmc.pub?q=ip) +* [useragent only](http://ip.cmc.pub?q=ua) If you're using the Apache web server, you can use the .htaccess rules below to make this site more user friendly: @@ -25,7 +25,7 @@ If you're using the Apache web server, you can use the .htaccess rules below to With this code in the .htaccess file there is no need to type out the full URL, i.e. 'ifconfig.php?q='. Instead, you can just open 'ifconfig/xml' to get XML output or 'ifconfig/ua' to determine useragent. -Run `curl -L -X GET https://ip.cleberg.net/\?q\=text` in Linux terminal to get some info. +Run `curl -L -X GET https://ip.cmc.pub/\?q\=text` in Linux terminal to get some info. ## Development diff --git a/ifconfig.php b/ifconfig.php index 4010991..826f9eb 100644 --- a/ifconfig.php +++ b/ifconfig.php @@ -14,9 +14,9 @@ function loadGeo(string $ipAddress): ?array } // Set top-level variables for HTML -$site_title = 'ip.cleberg.net'; +$site_title = 'ip.cmc.pub'; $site_owner_name = 'Christian Cleberg'; -$site_owner_url = 'https://cleberg.net'; +$site_owner_url = 'https://cmc.pub'; $source_repository = 'https://git.sr.ht/~cmc/ifconfig.php'; // Extract geolocation @@ -116,11 +116,11 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) { echo <<<EOD <pre><code># Curl Commands: - curl -L -X GET https://ip.cleberg.net - curl -L -X GET https://ip.cleberg.net/\?q\=text - curl -L -X GET https://ip.cleberg.net/\?q\=xml - curl -L -X GET https://ip.cleberg.net/\?q\=ip - curl -L -X GET https://ip.cleberg.net/\?q\=ua + curl -L -X GET https://ip.cmc.pub + curl -L -X GET https://ip.cmc.pub/\?q\=text + curl -L -X GET https://ip.cmc.pub/\?q\=xml + curl -L -X GET https://ip.cmc.pub/\?q\=ip + curl -L -X GET https://ip.cmc.pub/\?q\=ua </code></pre> EOD; |