diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-05-23 18:35:45 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-05-23 18:35:45 -0500 |
commit | 6435c9100bffea6a2df7603ef62ae00d64c92831 (patch) | |
tree | fc5e919ad281cc383bb90c4c0ea1423339b431ff /README.md | |
parent | e9d1ab5b5229a8888f0cf8aacd65d1810d3c54cb (diff) | |
download | ifconfig.php-6435c9100bffea6a2df7603ef62ae00d64c92831.tar.gz ifconfig.php-6435c9100bffea6a2df7603ef62ae00d64c92831.tar.bz2 ifconfig.php-6435c9100bffea6a2df7603ef62ae00d64c92831.zip |
initial fork: updating for php8
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -9,14 +9,12 @@ 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://briskin.org/ifconfig/text) -* [all in xml](http://briskin.org/ifconfig/xml) -* [ip address only](http://briskin.org/ifconfig/ip) -* [useragent only](http://briskin.org/ifconfig/ua) +* [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) - - -This is example of .htaccess rules, to make this script more user friendly: +If you're using the Apache web server, you can use the .htaccess rules below to make this site more user friendly: RewriteEngine On @@ -25,7 +23,7 @@ This is example of .htaccess rules, to make this script more user friendly: RewriteRule ^ifconfig$ ifconfig.php [L] RewriteRule ^ifconfig/(.*)$ /ifconfig.php?q=$1 [L] -With this code in .htaccess file there is no need to type long line 'ifconfig.php?q='. -Now just enough to open 'ifconfig/xml' to get XML output or 'ifconfig/ua' to determine useragent. +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 briskin.org/ifconfig/text` in Linux terminal to get some info. +Run `curl -L -X GET https://ip.cleberg.net/\?q\=text` in Linux terminal to get some info. |