1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[PHP script] Google url creator

Discussion in 'Black Hat SEO Tools' started by dario111cro, May 11, 2012.

  1. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    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($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}?>
    BHW messed code. Here it is in pastebin:
    http://pastebin.com/9z5b60Sw
     
    • Thanks Thanks x 3
    Last edited: May 12, 2012
  2. simey69

    simey69 Regular Member

    Joined:
    Mar 27, 2009
    Messages:
    325
    Likes Received:
    1,478
    Location:
    UK
    interesting, thanks.. could be quite useful..

    Si
     
  3. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    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.
     
  4. kokoloko75

    kokoloko75 Elite Member

    Joined:
    Jan 1, 2011
    Messages:
    1,628
    Likes Received:
    1,935
    Occupation:
    Design director
    Location:
    Paris (France)
    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
     
  5. harry911

    harry911 Regular Member

    Joined:
    Apr 26, 2011
    Messages:
    288
    Likes Received:
    262
    Location:
    le interwebs
    Looks interesting. Will try this when I get home.
     
  6. simey69

    simey69 Regular Member

    Joined:
    Mar 27, 2009
    Messages:
    325
    Likes Received:
    1,478
    Location:
    UK
    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
     
    • Thanks Thanks x 1
  7. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    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.
     
  8. youngguy

    youngguy Senior Member

    Joined:
    Apr 11, 2009
    Messages:
    1,053
    Likes Received:
    1,560
    Location:
    Hell
    Notice: This only works if your url indexed by google or it will grab a 1st dummy site out there :)
     
  9. simey69

    simey69 Regular Member

    Joined:
    Mar 27, 2009
    Messages:
    325
    Likes Received:
    1,478
    Location:
    UK
    I'm not seeing that.. any url i enter is attempted - no alternative/different is returned
     
  10. unsaidscript

    unsaidscript Junior Member

    Joined:
    Oct 3, 2011
    Messages:
    150
    Likes Received:
    40
    Occupation:
    Student
    Location:
    ************************ India *******************
    Home Page:
    Thanks For The Share
     
  11. JACOb5

    JACOb5 Junior Member

    Joined:
    Feb 26, 2012
    Messages:
    125
    Likes Received:
    52
    Occupation:
    Full time student - part time web designer
    Location:
    South Africa
    Home Page:
    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..
     
  12. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    No problem ;)

    It works fine for any site. Example:
    http://www.google.com/url?q=http://...888477&usg=AFQjCNH3IRifeEt6Lmf1yEIPcfmG5iFACw

    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.
     
  13. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    Looks like links generate this way are only usable for specific amount of time (24 hours?). But, you can still use them for spamming :)
     
  14. lanbo

    lanbo Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 23, 2009
    Messages:
    3,430
    Likes Received:
    594
    Home Page:
  15. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
  16. ija61

    ija61 Senior Member

    Joined:
    Mar 2, 2011
    Messages:
    960
    Likes Received:
    634
    Gender:
    Male
    Occupation:
    The first SEO economist:)
    Location:
    Romania
    Home Page:
    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.
     
    • Thanks Thanks x 1
  17. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    Don't worry, no hard feelings. ;)



    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.
     
    • Thanks Thanks x 1
    Last edited: May 16, 2012