Is there any way to get the redirected site url? I am just curious about how to get the code of TinyUrl
. Suppose I have created an url on tinyurl like http://ty.com/abcdef
and this is to be redirected to my site like http://example.com/some-another-url
. How do I get the code of tinyurl
from http://example.com/some-another-url
?
** ty.com for tinyurl.com
You can use
$_SERVER['HTTP_REFERER'];
PS: This is unreliable as it may not work with secure pages (HTTPS)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.