[PHP script] Google url creator

dario111cro

Junior Member
Joined
Feb 5, 2012
Messages
180
Reaction score
206
This is little script I made today. It will create "Google links". Example:
http://edition.cnn.com/
will become:
http://www.google.com/url?q=http://...157892&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:
<?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}?>
BHW messed code. Here it is in pastebin:
http://pastebin.com/9z5b60Sw
 
Last edited:
Yeah. I always wondered if Google counts traffic that goes to your site over SERPs. I know they do count traffic, only question is if this has some value in ranking in SERPs (even little one).

Also, maybe google has hole in their algorithm, so you can use this even when making backlinks (it would be similar to building backlinks to website which redirects to your site).

If there is anybody willing to try, please post your results here.
 
Interesting but the code is a bit dirty...
Something like "<?phpif(isset($_POST['url']))" can't work.

You should clean and format the code...

Beny
 
Looks interesting. Will try this when I get home.
 
Interesting but the code is a bit dirty...
Something like "<?phpif(isset($_POST['url']))" can't work.

You should clean and format the code...

Beny

Agreed, but once spruced, it does work.
I grabbed a quick co.cc and threw it on as a test area..
Code:
http://glinker.co.cc/

Feel free to use it if you don't want to upload/host the code..
Nothing is saved etc, it's the code above, but adds http:// if not included in the url submitted.
No pretty stuff, ads nor crap, just function as above

If you use/like it - remember to thank the op..

Si
 
Sorry for bad formatting. Every time I try to fix it, BHW editor returns it to weird code. Anyway, here is code:
http://pastebin.com/9z5b60Sw


Thank you simey69 for uploading script to your server.
 
Notice: This only works if your url indexed by google or it will grab a 1st dummy site out there :)
 
Notice: This only works if your url indexed by google or it will grab a 1st dummy site out there :)

I'm not seeing that.. any url i enter is attempted - no alternative/different is returned
 
I wanted to do simething similar not to long ago, have you figured out what all those numbers in the link means? That made me stop since i dont think google will have random numbers in its links.. But this is an interesting idea, a few pings each day and big g might think your site is getting bigger..
 
Thanks For The Share
No problem ;)

Notice: This only works if your url indexed by google or it will grab a 1st dummy site out there :)
It works fine for any site. Example:
http://www.google.com/url?q=http://...888477&usg=AFQjCNH3IRifeEt6Lmf1yEIPcfmG5iFACw

I wanted to do simething similar not to long ago, have you figured out what all those numbers in the link means? That made me stop since i dont think google will have random numbers in its links.. But this is an interesting idea, a few pings each day and big g might think your site is getting bigger..
Don't use this for pinging. It's better idea to get users/bots over url generated this way.
"Numbers" in url are hash codes that Google is generating. I can predict them using script I already have, but it's easier to let Google tell you what to use.
 
Looks like links generate this way are only usable for specific amount of time (24 hours?). But, you can still use them for spamming :)
 
Hy.

Not to be rude but what are you saying here is not true.

If you use this link you will not make google to count visitor for a specific keyword.

I say that because:

1. for each search G generate a key that you will find in the url that G generate.
2. so be count as a visit that come from G it must look as natural as possible this means that you also must have a browser header
3. As you can see if you try to access the example url you get a G message that notice you that this link is not genuine this been said I really do not believe that G will count this one.
4. in a genuine G link you will also find the keyword that bring the visitors to your website and also in witch position your website is.
 
Hy.

Not to be rude but what are you saying here is not true.
Don't worry, no hard feelings. ;)



If you use this link you will not make google to count visitor for a specific keyword.

I say that because:

1. for each search G generate a key that you will find in the url that G generate.
2. so be count as a visit that come from G it must look as natural as possible this means that you also must have a browser header
3. As you can see if you try to access the example url you get a G message that notice you that this link is not genuine this been said I really do not believe that G will count this one.
4. in a genuine G link you will also find the keyword that bring the visitors to your website and also in witch position your website is.
1. This IS url generated by big G (with key and everything).
2. ?? when user clicks link, he has user agent string inside of his header request.
3. Unfortunately, links are valid only for 24 hours. Now I am testing to see if I can get it to work for unlimited time.
4. Yes, you are right. As I said, I am already doing some tests. If I get positive results, I will post code for new script. It will include keyword and position of website, so I am pretty sure that Google will count it as SERP click (visit that came from search results). Also, it is possible that G is already counting visits over links that are generated using this script. You can't know what Google logs and what not.
 
Last edited:
Back
Top