phpbit.lyurl-shortenertinyurlgoo.gl

General url shortener decoder library for PHP


Is there any kind of library for PHP which can decode tinyurl, Goo.gl, bit.ly and other url shortened urls without making CURL requests?


Solution

  • without making CURL requests

    With URL shortening the hashes created have no relevancy to the URL being shortened but mealy a simple elegant internal database identifier.

    The only way to retrieve the URL location is to ask the link shortening site to process the request and then catch the response data, the only way to do that is with networking to that site.

    Unless the hash for the location is a reversible hash of long URL, there is no other way to do it.