How To Find Original Url of a Adfly Link Using PHP

The adfly links are stored in a java script variable zzz we can write a preg_match_all function to find the target url of a adflylink.



PHP Code :-

$adfly = ''; // target url
$html = file_get_contents($adfly);
preg_match_all("|zzz = '(.*)'|U",$html,$out);
echo $out[1][0];

Note : - For indian users adfly is blocked use https adfly llink.Your ip will be blocked by adfly if you send more than 25 requests to adf.ly

2 comments:

  1. please update this. not working

    ReplyDelete
  2. i live in usa and i clearly see adf.ly changed their coding last week and this won't work no matter if u put https or else. can u fix it?

    ReplyDelete

Post Your valuable comments here ..........