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

Mass bit.ly URL generator

Discussion in 'Making Money' started by dgusic, May 20, 2015.

  1. dgusic

    dgusic Regular Member

    Joined:
    Feb 28, 2015
    Messages:
    330
    Likes Received:
    175
    Hello! This is the script I found on this very forum and I thought to repost it as it took me quite a time to find it in the first place.

    I DID NOT MAKE THIS SCRIPT! This is the original thread

    What this script does it is makes a bunch of different bit.ly links. So spamming some social media (really useful if you are using Twitter and tons of accounts) becomes a lot easier and harder for someone to track you down.

    Code:
    <?php
    
    set_time_limit(0);
    
    
    define("BiTLY_APi_USER", "USERNAMEGOESHERE");
    define("BiTLY_APi_KEY", "APIKEYGOESHERE");
    
    
    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>
    All you have to do is save it as something.php and upload it to the server. Then you type yourdomainname.com/scriptname.php and voila! Enjoy with unlimited bit.ly links!
     
    • Thanks Thanks x 1
  2. TayaX

    TayaX Jr. VIP Jr. VIP

    Joined:
    Dec 13, 2010
    Messages:
    3,457
    Likes Received:
    1,931
    Occupation:
    Skype : TayaxBHW
    Location:
    France
    Home Page:
    Please note that bit.ly now limit the number of link/account at 10K/month.
     
  3. briangriffin

    briangriffin Newbie

    Joined:
    Jan 25, 2010
    Messages:
    46
    Likes Received:
    6
    Gonna host this script now. Thanks.
     
  4. dgusic

    dgusic Regular Member

    Joined:
    Feb 28, 2015
    Messages:
    330
    Likes Received:
    175
    I believe 10k/month is enough. Besides you can always ask them to imrpove the quota of the links.
     
  5. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    6,954
    Likes Received:
    7,984
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    yea, 10k is plenty, if not, you can always make another bit.ly account :)
     
  6. moonshine7000

    moonshine7000 Senior Member

    Joined:
    Mar 4, 2013
    Messages:
    942
    Likes Received:
    386
    Occupation:
    A+ IT technician,Clickbank and Amazon Marketer
    I have script that does this other link shorteners but in a VB.NET application so I don't need a website.A windows computer and internet connection is all that is needed.
     
  7. dgusic

    dgusic Regular Member

    Joined:
    Feb 28, 2015
    Messages:
    330
    Likes Received:
    175
    Since we are sharing, you can share too :)!
     
  8. Gosocials

    Gosocials Jr. VIP Jr. VIP

    Joined:
    Dec 11, 2014
    Messages:
    3,031
    Likes Received:
    305
    Occupation:
    Living Through Internet
    Location:
    Your Heart
    Home Page:
  9. Shadexpwn

    Shadexpwn Jr. VIP Jr. VIP

    Joined:
    Sep 12, 2010
    Messages:
    1,671
    Likes Received:
    449
    Gender:
    Male
    Occupation:
    Professional Showrunner
    Location:
    In the Shade
    Very good share for those not having Scrapebox, don't hesitate but to devour within the land of easy acquired tools that lead up to the best.

    If you ever wonder how many people rely on kind shares like this before building themselves upward means you actually are starting a gold rush people can easily tap into and you will be satisfied by such reactions.
     
    • Thanks Thanks x 1