krz/ifconfig.php

A private ifconfig service.

clone: git clone https://gitbay.org/krz/ifconfig.php.git

ae3335e433da7c3a97c9a2c421f25a6c9aeafcfd

unsigned

author: Christian Cleberg <hello@cmc.pub> · 2025-03-11T23:25:56Z

move from cleberg.net to cmc.pub
 .!33817!GeoLite2-City.mmdb |  0
 README.md                  | 10 +++++-----
 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
diff --git a/README.md b/README.md
index e1231b3..ef6e1e4 100644
--- a/README.md
+++ b/README.md
@@ -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;