TightURL Git Source Tree


2 TightURL
3 Version
5 What is it?
6 -----------
8 TightURL is a LAMP-based (Linux Apache MySQL PHP) blind redirection
9 service similar to TinyURL, designed for personal or company use by
10 those who prefer not to use external services, or cannot use them for
11 legal or logistical reasons. It may run correctly on a WAMP server
12 (Windows Apache MySQL PHP), but it is unknown if it does or not.
14 The major consideration in the design was the ability to customize
15 the application without altering program code. All browser output
16 except fatal error messages is produced by HTML-based templates.
18 A fair amount of customization is possible simply by setting a few
19 configuration variables in the configuration file or editing the
20 included HTML template files. Under no circumstances does the program
21 script file ever have to be edited, unless you're a developer.
23 The primary reason for a blind redirection service is to avoid
24 e-mailing URLs to people that are broken when received, because the
25 recipient's e-mail program is unable to pick up the rest of the URL
26 after a line-wrap. It is called a blind redirection service because
27 you can't tell where you'll end up just by looking at the link.
29 For the purposes of TightURL, we want to generate the shortest
30 redirection URL possible, thus we use a blind redirection URL, and
31 encourage the use of mod_rewrite or the "404-page Method" to achieve
32 the shortest possible URL.
34 Can I use it without getting a special domain for it?
35 -----------------------------------------------------
36 Yes. The requirement for TightURL to be considered useful is the
37 ability is to create a URL that won't wrap in a plain text e-mail
38 message. That means the upper limit is about 72 characters of URL.
39 A worst case scenario looks like this:
41 http://www.a-really-quite-long-name.com/~example01/tighturl.php?i=abcdef
43 Even this example can actually be made 10 characters shorter in most
44 cases without needing to ask the webmaster for special settings:
46 http://www.a-really-quite-long-name.com/~example01/t/?i=abcdef
48 See INSTALL for more details on how to "squeeze" your base URL down
49 to the smallest possible size.
51 Why was it written?
52 -------------------
54 This software was written for the oldest reason in the Free Software
55 book; to scratch an itch. The author had been looking for some
56 Free Software to run his own URL shortening service. Finding no Free
57 Software that fit the bill, and wanting a first PHP project to work
58 on, TightURL was born. Issuing an HTTP Redirect is not exactly
59 rocket science, what the URL shortening service is really providing
60 is convenience and processing resources.
62 The software itself can be boiled down to a very few lines if it is
63 hard-wired to its configuration values and output screens. But
64 since the author had been looking for some cookie-cutter software and
65 couldn't find any, he decided to write this so that hopefully no one
66 else will have to. It can be cosmetically tweaked from the config
67 file very easily, and in more depth by editing the HTML templates.
70 Additional Disclaimer
71 ---------------------
73 Original author's code sucks. He is a rank amateur, evertything a
74 professional developer despises. (I wouldn't run code written by me
75 if I were you.)
77 Contributing (code) to TightURL
78 -------------------------------
80 Patches welcome. Critical advice welcomed if gently given.
81 Access to CVS or Arch possible, please contact maintainer.
82 ron-a-t-vnetworx.net
84 The Latest Version
85 ------------------
87 Details about the latest stable and development versions are
88 available at the TightURL Web site at http://tighturl.com/ .
90 Documentation
91 -------------
93 The documentation available as of the date of this release is the
94 contents of this README file. Additional documentation is available
95 at runtime in the browser for using TightURL.
97 Requirements
98 ------------
100 PHP - Should work with any version >= 4.3.0
101 MySQL - Should work with versions greater than >= 3.x
103 Features
104 --------
106 * Can create very short URLs using mod_rewrite or the "404 Method"
107 * ID size kept very short by using Base-36 IDs
108 * The same URL entered more than once always returns the same ID
109 * All output is generated by templates.
110 * Site design is controlled by a single template.
112 Known Limitations
113 -----------------
115 TightURL probably works under Windows with Apache and MySQL, but we
116 have no way of knowing for sure until someone reports they've tested it
117 and it works. One possible problem would be if TightURL can't find
118 nslookup on the PATH. The Windows version uses nslookup as a kluge for
119 missing functionality in PHP for Windows.
121 Coming Features
122 ---------------
124 Please see the file called TODO.
126 Installation
127 ------------
129 Please see the file called INSTALL for detailed installation
130 instructions.
132 Anti-spam Features
133 ------------------
135 A problem with blind redirection services is they can be abused by
136 spammers to conceal the domains their spam is trying to get people to visit.
137 The TightURL Library attempts to screen out other known redirection
138 services, Windows executables, and matches against your local blacklist.
140 To keep spammers and phishers from abusing TightURL, it checks the URI
141 blacklists at multi.surbl.org and black.uribl.com . TightURL will refuse to
142 add URLs that appear on these URI BLs. You can add additional URI BLs.
144 Licensing
145 ---------
147 Please see the file called LICENSE.
149 Acknowledgments
150 ----------------
152 The TightURL developer(s) acknowledge the following copyrighted works
153 that make up portions of the TightURL software:
155 Bad Behavior

Archive Download this file