5 ms·
I think if you're going to do this it'd be better done as a server side redirect, like through .htaccess However even though I'm, in general, against URL short
by philfreo 17y ago
I think if you're going to do this it'd be better done as a server side redirect, like through .htaccess
However even though I'm, in general, against URL shorteners, I wouldn't do this because I think there are some situations where they are helpful.
- pj 17y agoThat's true. I just threw this together. I think you could even create a database table and generate the redirect on the server side or dynamically create the javascript. Most browsers have javascript enabled. Maybe a hacker with some time (maybe I'll create one) could create a site with a dynamically created .js file and a remote link like this: <script src="http://takebackthewebfromurlshorteners.com/bannedreferrerslist.js"> </script> This .js could be dynamically generated from a database table of known url shorteners. Such a service could even get really fancy and show stats from all the known shorteners, etc. You could add parameters like this: <script src=".../bannedlist.aspx?allow=digg.com,bit.ly,etc..."></script> Then the user could customize exactly which url shorteners they want to allow. All kinds of things a service like this could do!
- nir 17y agohttp://www.listable.org/json/url-shortening-sites http://www.listable.org/json/url-shortening-sites :)