Jump to content

Getting the last URl of a redirect address


bloodfire

Recommended Posts

Anyone have an idea on how to simply get the actual address of the redirect address?

 

eg.

The code read this

http://feeds.bignewsnetwork.com/?rid=21117160&cat=1948b3b9eadbd541

 

Then it shows this

http://www.bt.com.bn/en/home_news/2009/01/14/hm_calls_for_effective_zakat_distribution

 

which is the actual address.

We need more information. How are these addresses being redirected?

 

Well, I have no idea how the addresses are being redirected indepth. Basically, I think it just forward to the original link. I just want to create a script to follow the redirected link and when it reached the last link where it displays the webpage, from there it grabs the original address of the webpage.

 

I was thinking of using php Curl, however, if someone knows an alternative method will also be appreciated.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.