Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open Source URL Shortening Script
#16
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.
MyBB Support Team Lead
Reply


Messages In This Thread
Open Source URL Shortening Script - by RPicard - 11-30-2009, 11:40 AM
RE: Open Source URL Shortening Script - by MattR - 12-06-2009, 10:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Short URL script? Fragma 4 1,219 08-28-2011, 03:12 AM
Last Post: Fragma
  Some FREE Open Source Social Networking Scripts on net envira 7 2,014 03-27-2011, 08:27 PM
Last Post: Epicly
  if my hosting plan url is 69.163.34.236 i7up37t 1 731 02-23-2011, 12:51 PM
Last Post: Omarito
  AN open source FORUM+SOCIAL NETWORKING envira 2 1,009 02-12-2011, 08:21 AM
Last Post: w00pz
  Web Url Problem dunlop03 3 1,082 03-23-2010, 01:09 PM
Last Post: Cida

Forum Jump:


Users browsing this thread: 16 Guest(s)