2008年12月22日星期一

缩短链接长度


现在的网页地址,或者由于是动态网页而带着很多参数,如Google Maps的北京链接,
http://maps.google.com/maps?f=q&hl=en&
geocode=&q=Carrboro,+NC&ie=UTF8&ll=
35.912932,-79.077401&spn=0.018665,0.03253&z=15
或者为了保密随机生成,如Pisaca网络相册中我的logo
http://lh4.ggpht.com/_7_lDiEMxqxM/SUSfISbqoSI/
AAAAAAAAA30/CojQFiZMOa0/favicon3d.png
会变得够长够不便。能缩短点就好了……有需求就有供应,至少有两个网站提供缩短链接的服务:
tr.imTinyURL
单击上面任意一个,就可以得到本页的一个缩短链接。
我得到:
  • tr.im: http://tr.im/2jp8,比原始链接短——勉为其难哈,但似乎不能定制,不过可以方便地发给twitter,也可以自己删除此短链接。
  • TinyURL: http://tinyurl.com/7gj2z2,可以定制,但必须6位以上,得到http://tinyurl.com/esnesn
如果使用FireFox,Safari 或 Opera,可以把上面的链接拖到浏览器工具栏或收藏夹,IE6可以添加到收藏夹,在需要时,单击就可以得到当时页面的缩短链接。

关于有效时间,tr.im的FAQ这样说:
How long does a tr.im URL last for?

We only ever reclaim a tr.im URL if it does not belong to anybody, and it has never been used. URLs that are created via our application programming interface, without a username and password, for example, are not owned by anybody.

If you create a tr.im URL within your tr.im account, we will never delete it, whether it has ever been visited or not. Once you create it, you own it. Simple.

大意是有主的是永久有效,例如注册用户创建的链接,反之则会删除,例如用其API创建但未提供用户名和密码。

更新(2009.1.2):在薛瑞尼的博客上看到另外两个缩短链接的网站


没有评论:

发表评论


相关文章

Widget by Hoctro