diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..d997e69 --- /dev/null +++ b/.htaccess @@ -0,0 +1,11 @@ + +SetEnvIf X-Forwarded-Proto https HTTPS +# BEGIN WordPress +# The directives (lines) between `BEGIN WordPress` and `END WordPress` are +# dynamically generated, and should only be modified via WordPress filters. +# Any changes to the directives between these markers will be overwritten. + +# END WordPress +Options FollowSymLinks +RewriteEngine On +RewriteRule ^/ipinfo$ /ipinfo/index.php [L] diff --git a/README.md b/README.md new file mode 100644 index 0000000..2f79511 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# ipinfo-lite +ipinfo-lite is a tiny IP information site written in PHP as my first PHP project. + +Visiting an ipinfo-lite instance provides you with your IP address, its DNS hostname and the user agent string. +It's also compatible with console tools, supporting cURL and GNU Wget. +The goal of this tool is to be fast and dead-simple. Design is adapted from the +[better moterfucking website](http://bettermotherfuckingwebsite.com/). + +It is free software, available under ISC License. + +# Usage +Extract all but this readme file into a directory on your webserver. The webapp is then available from it's directory name. \ No newline at end of file diff --git a/ifconfig-dynamic.php b/ifconfig-dynamic.php deleted file mode 100644 index 58039e5..0000000 --- a/ifconfig-dynamic.php +++ /dev/null @@ -1,10 +0,0 @@ - - -
- -| Your IP: | + |
| Your hostname: | + |
| Your user agent: | + |