aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md35
1 files changed, 24 insertions, 11 deletions
diff --git a/README.md b/README.md
index 2119f50..35a84a4 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,31 @@
ifconfig.php
============
-**Simple PHP script to show IP-address, UserAgent and other info**
+**Simple PHP script to show IP address, UserAgent and other info**
+It works exactly the same as [ifconfig.me](http://ifconfig.me) and [ifconfig.co](http://ifconfig.co).
-Added 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 value.
+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.php?q=text)
-* [all in xml](http://briskin.org/ifconfig.php?q=xml)
-* [useragent only](http://briskin.org/ifconfig.php?q=ua)
-
-P.s.
-I've made this script only as an illustration for my article about privacy problems.
-For now I have no plans to make it more powerfull, so I would like to recommend
-you another good project [ifconfig.co](http://ifconfig.co).
+* [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)
+
+
+
+This is example of .htaccess rules, to make this script more user friendly:
+
+ RewriteEngine On
+
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteCond %{REQUEST_FILENAME} !-f
+ 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.
+
+Run `curl briskin.org/ifconfig/text` in Linux terminal to get some info.