What's a good URL shortening script? [closed]

旧城冷巷雨未停 提交于 2019-12-08 10:12:01

问题


What's a good URL shortening script that does the following things?

  • It is customizable (HTML and CSS)
  • Users can create accounts
  • Users can delete shortened URLs
  • There is a bookmarklet
  • Users can set privacy codes
  • Some sort of API (so Twitter clients could use it, etc.)

Thanks a document.write(Math.random()*Math.pow(10,18));
:)


回答1:


I haven't used any of these, but a quick googling turns up lots of results

Here's a good tutorial on how to do it yourself

Here's a php implementation you can use for free

The user account creation side of things is a separate issue and I'm not aware of any url-shortening scripts that would consider that. You might want to look into using openID providers for your authentication, though.




回答2:


HotScripts looks like it has a few. Haven't used any but that might be a good place to start.




回答3:


Check out ur.ly. I use it almost daily to compress URL's.

If you want to use an API to interact with a URL compression service, they have that. They also publish their code, so you can check it out if you want to do something similar. It's written in Python.

ur.ly doesn't have accounts or allow deletion, but the code should help you get started.

EDIT for managing URL's using an account, you could try bit.ly, but they don't offer their code AFAICT. They do offer an API, though, that includes authentication.




回答4:


I prefer Shrinky the free URL shortener, it’s free and it must be listed too : Shrinky - Free URL Shortener Script



来源:https://stackoverflow.com/questions/1695525/whats-a-good-url-shortening-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!