Search (advanced search) | ||||
Use this Search form before posting, asking or make a new thread.
|
05-12-2012, 08:41 AM
Post: #1
|
|||
|
|||
[PHP script] Google url creator
It will create "Google links".
Example: Code: http://edition.cnn.com/ 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($curl, CURLOPT_URL, 'http://www.google.com/url?q='.urlencode($_POST['url'])); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSLVERSION, 3); curl_setopt($curl, CURLOPT_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} |
|||