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

[GET] Bit.ly API Mass Url Generator

Discussion in 'Black Hat SEO Tools' started by kelvin.thechamp, Aug 23, 2012.

  1. kelvin.thechamp

    kelvin.thechamp Power Member

    Joined:
    Apr 4, 2011
    Messages:
    643
    Likes Received:
    272
    Occupation:
    Account selling , Creating Multithread Bot's
    Location:
    http://spamvilla.com
    bit.ly don't allow generation of short url of the same url,
    following script bypass their check
    simply when you enter url value like http://blackhatworld.com/ its become
    http://blackhatworld.com//#8149719
    (# +some random number)
    after redirect it looks like

    http://blackhatworld.com/#8149719#5680541#2008972

    so each time bit.ly get new domain link and makes new shorten on the fly

    here you go

    PHP:
    <?php

    set_time_limit
    (0);

    define("BiTLY_APi_USER""willylo");
    define("BiTLY_APi_KEY""R_bfd64fcf72e0d7bcbad3c9f7425fb1cjkg4");

    function 
    bit_ly_url($url){
        
    $format 'xml';
        
    $version '2.0.1';
        
    $bitly 'http://api.bit.ly/shorten?version='.$version.'&longUrl='.urlencode($url).'&login='.BiTLY_APi_USER.'&apiKey='.BiTLY_APi_KEY.'&format='.$format;
        
    $response file_get_contents($bitly);
        if(
    strtolower($format) == 'json'){
            
    $json = @json_decode($response,true);
            return 
    $json['results'][$url]['shortUrl'];
        }else{
            
    $xml simplexml_load_string($response);
            return 
    'http://bit.ly/'.$xml->results->nodeKeyVal->hash;
            }
        }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Bit.ly [APi] Mass Url Generator</title>
    <style type="text/css">
    html {
        background: #f1f1f1;
    }
    body {
        background: #fff;
        margin: 22px auto;
        width: 764px;
        padding: 22px;
        text-align: center;
        font-family: Georgia, "Times New Roman", Times, serif;
        color: #464646;
    }
    h2 {
        font-size: 3em;
        font-weight: normal;
    }
    </style>
    </head>

    <body>

    <h2>Bit.ly [APi] Mass Url Generator</h2>
    <?php
    if (isset($_POST['doit'])&&($_POST['doit']==1)){
        
    $tocreate $_POST['tocreate'];
        
    $url $_POST['url'];
        echo 
    "<textarea cols='30' rows='15'>";
        for (
    $i=0;$i<$tocreate;$i++){
            
    $url $url."#".rand(0,9999999);
            
    $link bit_ly_url($url);
            echo 
    $link."\r\n";
            }
        echo 
    "</textarea><br /><br />";
        echo 
    "<a href=''>Create More Links</a>";
        exit;
        }
    echo 
    "<form action='' method='post'><input type='hidden' name='doit' value='1' />";
    echo 
    "URL: <input type='text' name='url' size='50' value='' /><br /><br />";
    echo 
    "Create X Bit.ly: <input type='text' size='1' name='tocreate' value='10' /><br /><br />";
    echo 
    "<input type='submit' value='Create Links' />";
    echo 
    "</form><br /><br />";
    ?>
    </body>
    </html>
    usage are simple
    edit

    define("BiTLY_APi_USER", "willylo"); (change "willylo" => "yourusername")
    define("BiTLY_APi_KEY", "R_bfd64fcf72e0d7bcbad3c9f7425fb1c4"); (change "R_bfd64fcf72e0d7bcbad3c9f7425fb1c4" => "yourkey")

    Key can be found simply navigate to
    Code:
    https://bitly.com/a/settings/advanced
    after login into bit.ly account and click Show legacy API key

    save the file to some name like shorten.php upload into your shot and make mass shortens :)

    Now enjoy and make some money

    Regards
     
    • Thanks Thanks x 4
    Last edited: Aug 23, 2012
  2. aasas

    aasas Senior Member

    Joined:
    May 2, 2011
    Messages:
    881
    Likes Received:
    175
    Occupation:
    Home
    Location:
    Alytus-Lithuania
    Thanks , you own this code, script ?
     
  3. kelvin.thechamp

    kelvin.thechamp Power Member

    Joined:
    Apr 4, 2011
    Messages:
    643
    Likes Received:
    272
    Occupation:
    Account selling , Creating Multithread Bot's
    Location:
    http://spamvilla.com
    Nope its a vip release of a script forum safe to use source code is included feel free
    to modify enjoy !
     
  4. wisher

    wisher Registered Member

    Joined:
    Jul 7, 2013
    Messages:
    91
    Likes Received:
    11
    just use it this awsome man!!!!
     
  5. kelvin.thechamp

    kelvin.thechamp Power Member

    Joined:
    Apr 4, 2011
    Messages:
    643
    Likes Received:
    272
    Occupation:
    Account selling , Creating Multithread Bot's
    Location:
    http://spamvilla.com
    glad you found it useful thank you
     
  6. Chicilikit

    Chicilikit Senior Member

    Joined:
    Dec 21, 2010
    Messages:
    872
    Likes Received:
    153
    Thanks for this, it is still working and its very easy to use :)
     
    • Thanks Thanks x 1
  7. Arontus

    Arontus Registered Member

    Joined:
    Mar 1, 2012
    Messages:
    61
    Likes Received:
    11
    Excuse me from grave digging, but this script is still working, but the thing is that it doesn't show any stats on those shorten url's, unless i visit them myself, anyone had the same issue?
     
  8. nikok

    nikok Newbie

    Joined:
    Jan 15, 2011
    Messages:
    9
    Likes Received:
    1
    I find out C# program ShortBot to generate shortened links for your URLs that you load:
    github -> ShortBot