Support Forums
Open Source URL Shortening Script - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Website Development (https://www.supportforums.net/forumdisplay.php?fid=43)
+---- Thread: Open Source URL Shortening Script (/showthread.php?tid=3244)

Pages: 1 2


RE: Open Source URL Shortening Script - Grizzly - 12-05-2009

Well, apparently oyu haven't. I'll upload one to PWF here sometime over the next day or so for you.


RE: Open Source URL Shortening Script - RPicard - 12-05-2009

(12-05-2009, 08:58 AM)Grizzly Wrote: Well, apparently oyu haven't. I'll upload one to PWF here sometime over the next day or so for you.

What is the script called? I may have looked into it already.


RE: Open Source URL Shortening Script - Grizzly - 12-05-2009

I have no idea, and honestly, I don't know how I found it. I'll post a link once I dig it up off my laptop. I cleaned off my desktop yesterday and threw a ton of things into an "Everything" folder and there are like 3 URL shorteners lol.


RE: Open Source URL Shortening Script - Extasey - 12-05-2009

(12-05-2009, 04:27 AM)Rob Wrote: or two lies; dos rojos


I'm still looking for a good script though.

fudge I'm stupid.


RE: Open Source URL Shortening Script - RPicard - 12-05-2009

Lol okay. Thanks.


RE: Open Source URL Shortening Script - MattR - 12-06-2009

tr.im are meant to be open sourcing their code at some point. What you'll need to do though is this:

Form with box for URL, custom name, password.
Generate a unique short code if there's not a custom one specified.
Insert the URL, short code/custom name and password.
When visited, query for the short term, select the URL.
Record any stats you want to do.
If it's password protected redirect them to a page to enter password then if it's correct redirect them to the full URL.
If it's not password protected redirect them to the full URL.

I can't imagine that'd need more than a few hundred lines of code, depending on how many other features you add. The reason I haven't made one myself is it's not going to be able to compete with the other big players in URL shorteners and I wouldn't be able to take it far enough to make it worth bothering with.


RE: Open Source URL Shortening Script - RPicard - 12-06-2009

(12-06-2009, 10:51 AM)MattR Wrote: tr.im are meant to be open sourcing their code at some point. What you'll need to do though is this:

Form with box for URL, custom name, password.
Generate a unique short code if there's not a custom one specified.
Insert the URL, short code/custom name and password.
When visited, query for the short term, select the URL.
Record any stats you want to do.
If it's password protected redirect them to a page to enter password then if it's correct redirect them to the full URL.
If it's not password protected redirect them to the full URL.

I can't imagine that'd need more than a few hundred lines of code, depending on how many other features you add. The reason I haven't made one myself is it's not going to be able to compete with the other big players in URL shorteners and I wouldn't be able to take it far enough to make it worth bothering with.

Thanks for the info. I'm not much of a coder atm though.


RE: Open Source URL Shortening Script - rockclimber66 - 12-11-2009

Correct me if I'm wrong, didn't Google release something like this? I might be confusing it with something else, but who knows..


RE: Open Source URL Shortening Script - RPicard - 12-11-2009

(12-11-2009, 12:03 PM)faviouz Wrote: Correct me if I'm wrong, didn't Google release something like this? I might be confusing it with something else, but who knows..

Not that I know of.