public
Description: Giturl is a tiny-url clone with a git backend.
Homepage:
Clone URL: git://github.com/whee/giturl.git
whee (author)
Sat Oct 18 15:35:21 -0700 2008
commit  c7c7063bf10e7b474c31ea3e456297e6e4b22d88
tree    13e1fa45f430912a778dfed18b098032529bd774
parent  297651b5fc1ddd89a37e15bd177e49fa75e39226
giturl /
name age message
file LICENSE Wed Jul 09 19:47:49 -0700 2008 This software is licensed under the ISC license... [whee]
file README Thu Jul 17 18:52:14 -0700 2008 Add README Signed-off-by: Brian Hetro <whee@sm... [whee]
file gurl Sat Oct 18 15:35:21 -0700 2008 HTML fixings. Signed-off-by: Brian Hetro <whee... [whee]
GitUrl README
=============
Brian Hetro <whee@smaertness.net>

GitUrl provides a Tiny URL-like service.  Given a URL, it will produce
a shorter URI -- easier to remember, paste, or write down.

GitUrl requires the link:http://git.or.cz/[git] content tracker to operate.

Rationale
---------
GitUrl was created as an easy-to-configure alternate to Tiny URL in
situations where URLs may contain sensitive information, e.g., the
internal company network.  In these cases, it is trivial to set up
GitUrl on an internal web server to provide URL shortening service so
that URLs are not leaked to external service providers.

Installation
------------
GitUrl is a single shell script, typically called as a CGI program.
To set up GitUrl, follow these steps:

. Copy gurl to the desired CGI-enabled web server path.
. In that path, and as the web server user, set up a git repository
with "git init".  This repository tracks URLs added.
. You may have to modify the path to the shell and PATH in the gurl
script if your system has them in a different location.

Usage
-----
To obtain a shorter URL, navigate to
+http://your.server/gurl.location?'URL_to_shorten'+.  The shortened
URL is returned.

When retrieved, this URL redirects to the original URL given.

Backend
-------
The URL database is managed with git.  This has all sorts of interesting
consequences which you are encouraged to investigate.