开发者

Open source URL shortening software? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 9 years ago.

开发者_StackOverflow社区 Improve this question

Are there any open source URL shortening software projects out there? Perhaps something that works in conjunction with Apache?


A lot of them popped up when I did a search on Github:

https://github.com/search?langOverride=&q=url+shortener&repo=&start_value=1&type=Repositories


Does this Count? http://code.google.com/p/urly/

or this http://yourls.org/


Firefly claims it can be up & running in 2 minutes: https://github.com/ariejan/firefly#readme

Here are some other suggestions: http://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/


You could do it yourself easily enough with a database. Just store each long url in the database as a key and the short one as a value. You could easily create a short one with an auto-increment field in your table. Your urls would look like this:

http://mysite.com/12345

In your server side programming language of choice, just do a look up into the table, and then do a redirect.


I use http://yourls.org/ in my shortener, very powerful and plugin enabled. You can also easily create your own pages with stats and stuff.

Here's mine:

http://impbr.com

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜