70.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

05-12-2012, 08:41 AM
Post: #1
[PHP script] Google url creator
It will create "Google links".

Example:
Code:
http://edition.cnn.com/
will become:
Code:
http://www.google.com/url?q=http://edition.cnn.com/&ei=t_GsT7y6CcGi0QXi3ci7CQ&sa=X&oi=unauthorizedredirect&ct=targetlink&ust=1336735935157892&usg=AFQjCNFAJbJ-UBFNcB3uu-EfUrGlEhd6bQ

This could have many usages. For example, if you spam at facebook, this way you will have lower chance of being banned. Also, all traffic that goes over links of this type, Google will register as search traffic. Not sure, but it could even have effect on your rankings.

PHP Code:
<?phpif(isset($_POST['url'])) {    $curl curl_init();    curl_setopt($curlCURLOPT_URL'http://www.google.com/url?q='.urlencode($_POST['url']));    curl_setopt($curlCURLOPT_HEADERfalse);    curl_setopt($curlCURLOPT_RETURNTRANSFERtrue);    curl_setopt($curlCURLOPT_SSL_VERIFYHOST,  0);    curl_setopt($curlCURLOPT_SSL_VERIFYPEER0);    curl_setopt($curlCURLOPT_SSLVERSION3);    curl_setopt($curlCURLOPT_USERAGENT"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.21 (KHTML, like Gecko) Chrome/19.0.1042.0 Safari/535.21");    $page curl_exec($curl);        $dom = new domDocument;    @$dom->loadHTML($page);    $dom->preserveWhiteSpace false;        $a $dom->getElementsByTagName('a');    echo 'http://www.google.com' $a->item(0)->getAttribute('href');} else {    ?>    <form method="POST">    Url: <input name="url" />    <br /><input type="submit" value="Generate url!" />    </form>    <?php}
?>




61.gif