Dear All Could any body shed some light on my problem. What I am trying to do is I have one URL1 (http://www.domain1.com) and user click this url1 and which redirects to URL2 (http://www.domain2.com). But my problem here is I know what could be URL1 but never know URL2 which I need to track for some encoded strings in url they append when they loaded. Is there any way I can track the final forwarded URL in php?. or even java script also fine for me if you have some ideas. I tried below solution but no luck. $ch = curl_init($url); $execute = curl_exec($ch); if(!curl_errno($ch)) { $stringData = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); } Appreciate your help in advance. Thanks Rao