|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2022-10-05 (5 months ago) ||Not enough user ratings||Total: 63 ||All time: 10,218 This week: 157|
This class can get the URL to where a short URL redirects.
It can take a short URL and sends an HTTP request to the respective Web server to determine the destination URL.
If the destination URL also redirects to another URL, the class also determines the respective destination URL until no more redirection happens.
The class returns an array with the list of all URLs it accesses until it reaches its final destination URL.
|Short URLs help pass URLs of pages to other people in a way that may be easier to remember or type.
One challenge of short URLs is that they hide the actual destination URLs. If the pages of destination URLs have security issues, the users that get short URLs may not be aware of that until they access the short URL destination pages.
This package finds and returns the destination URLs of a given short URL. It may also return any intermediary URLs that browsers may need to access until they reach the final destination URL.
This way, developers may use security tools for auditing the safety of the final destination of the short URL, as well as all intermediary URLs.
It's for developers to track URL programmatically and avoid faking phishing URL with shorten URL.
Using this library is simple. Firstly, installing the library with following command:
composer require lee/url-tracker
Then using the following code to track URL easily:
require_once __DIR__ . '/vendor/autoload.php';
$url = 'https://bit.ly/grpc-intro';
$trackedResult = Tracker::trackFromUrl($url); // ['https://bit.ly/grpc-intro', 'https://www.slideshare.net/williamyeh/grpc-238408172/williamyeh/grpc-238408172',]
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.