The function of the short URL restoration (UnshortURL) program is to restore these short URLs to their original appearance. The current short URL service is blooming everywhere. While it facilitates communication among Weibo users, it also brings some hidden dangers. Because the short URL only transforms the URL into another shorter URL, regardless of whether the original URL contains viruses or contains unhealthy content, or is a recommended link with an annoying little tail. Supports the restoration of various currently popular short URLs, such as: goo.gl, t.cn, url.cn, bit.ly, etc. The principle is quite simple, which is to obtain the location information of the HTTP header through curl, and make three necessary judgments to make the user experience better. System requirements: Enable PHP Curl.
Expand