Hacker News new | ask | show | jobs
by mp4box 4404 days ago
Probably should block the same domain from shortening.else you'll get something like http://9m.no/婀蒾 (multiple redirects)
1 comments

I created a simple url shortener[0] a while back and though I thought of this I hadn't considered people could add a '.' to the domain to get around that (so http://yl.io/1 becomes http://yl.io./1), which somebody was nice enough to figure out for me ;)

[0] http://yl.io

Care to share the source? I like its simplicity!
HN really needs to let me know when I get replied to :)

The source is available[0], can't remember if it's any good though. :)

[0] https://github.com/buttscicles/yl.io