As a user of bit.ly, I wish I could determine when a bit.ly URL could be used. For example, I have a cute kitten website with a special offer that I want to link to, but the bit.ly link for it shouldn't work until a specified date.
-
I'd like to name my modified bit.ly service later.ly
-
http://awesomesauce.com/specialoffer becomes - http://later.ly/
-
Can set an available to open date for http://later.ly/
-
Set once when the link is created (required)
-
Can also set an expire date for http://later.ly/
- Set once when the link is created (optional)
-
If URL is accessed outside of acceptable date range it should be handled
First version: Depend on URI underneath as consistent type to operate on from function to function. Use Digest/SHA1 to create guid for path.
Second version: Provide a real url shortener using base32. Base32 provides a more human readable encoding and excludes I L O U which should keep us safe from any cuss words leaking in once we get to ROFLSCALE. Based on ideas in this SO post: http://stackoverflow.com/questions/742013/how-to-code-a-url-shortener