Long URL conversion Short URL

Source: Internet
Author: User

You can convert your site with 955 URLs

Here's how it works: http://blog.sina.com.cn/s/blog_65db99840100lg4n.html (RPM)

----------------"See the news today that Google's website shortening service (http://goo.gl/) is open to the public, want to see how this short address is the same thing, because when playing Sina Weibo also often encounter this stuff."

With my blog address http://blog.sina.com.cn/bluemonster0808 The generated short address is goo.gl/hdau (it is worth noting that the same long address is generated every time the short address is not the same, Google does not add duplicate URL decision may be mainly due to the question of time. Currently 4-bit length, composed of A~z, A~z,0~9, can only accommodate 624, Chichodovan address, the future should be increased length) "

ADDED 20101002

recently found that the same long address every time the generation of the short address is the same, Google added a repeat decision. For example http://blog.sina.com.cn/ bluemonster0808 Now each generation is Http://goo.gl/PiOA, but the previous http:// goo.gl/hdau can still be used

By grasping packet discovery, the first is DNS resolution GOO.GL, get 74.125.153.138,74.125.153.102 and other Google's server address. Then send an HTTP GET request to one of them, query hdau, the server then return a 301 page jump Response, tell the browser to jump to the corresponding long address http://blog.sina.com.cn/bluemonster0808. The principle is very simple, mainly a long address to the short address of the conversion algorithm and a database storage, query. But it's going to take a lot of effort to be stable and useful.

There was a discovery, withIE Kernel browser (i triedIE8 and Sogou), before visiting a Web site,360 will intervene.DNS resolutionqurl.f.360.cn This site, found it is Qurl.qh-lb.com alias, ip is 221.194.173.11 and Span lang= "en-us" xml:lang= "en-us" >221.194.173.13 and then sends lang= xml:lang= to 360 "en-us" post message, post/check_outchain.php, a lot of content, but do not understand what it means. 360 servers return only one 200 OK, and the server is actively disconnected. This is 360 Internet security? I am a little skeptical, because if you want to check the legality of the URL, only need to report this URL to 360 Server let it check, check out 360 should return a correct message (of course, if the URL is legitimate 360 the server directly shut down the connection is also reasonable), the wrong thing to return a failed message. But observe post package, there is no web site I want to access information, there are many I do not know what the meaning of the content.

There is also a discovery is Sogou browser agent really cool Ah, with Sogou to visit Google's short URL, not from the Google server directly to obtain the corresponding long address, but through 118.228.148.62 this proxy server transit. To ip138 on the query 118.228.148.62 is Sohu's server.

ADDED 20101211

Online to see someone to do their own to do a website shortened things http://www.evlos.org/2009/12/20/finished-my-own-urlshort/, although hung off, but worth a look

Long URL conversion Short URL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.