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

Possible Alexa Ranking Script ?

Discussion in 'Black Hat SEO' started by mikeleigh27, Nov 6, 2008.

  1. mikeleigh27

    mikeleigh27 Newbie

    Joined:
    Nov 6, 2008
    Messages:
    4
    Likes Received:
    0
    Hi Everyone, This is my first contributing post here, Maybe.

    I was searching the net and came across a bit of code that can "supposeidly" trick alexa into thinking that every visitor to your site has the alexa toolbar installed.

    I havn't yet tryed this but I can't see why it shouldn't work



    The Alexa toolbar itself generates a standard HTTP GET request. We can do the same by inserting a <IMG> tag with the resulting url as the source. Alexa actually returns XML markup as a response, but the contents are irrelevent for this purpose; we just want to trigger the logic.

    There are a bunch of query values in the URL; some are obvious, others... not so much.

    The keys to getting this to work is to start page generation with:

    ----------------------
    session_start();
    ----------------------

    If your using persistant sessions, you probably already got this.

    Next, create a new function somewhere in your code; if you have a global functions file, it'd probably go there. otherwise, you can put it right below the session_start() value above.

    ----------------------
    function alexa() {
    $domain = "http://data.alexa.com";
    $keylength = 14; // the resulting length of the keyid. 14 and 15 were seen in the wild.

    // session_start() must have already been set. If so, this will ensure that each visitor maintains the same keyid throughout the entire visit.
    if (isset($_SESSION['alexa_keyid'])) {
    $keyid = $_SESSION['alexa_keyid'];
    } else {
    $keyid = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"),0,$keylength);
    $_SESSION['alexa_keyid'] = $keyid;
    }

    $cli = "10"; // ???
    $dat = "snba"; // ???
    $ver = "7.2"; // version number of toolbar?
    $cdt = "alx_vw"; // ???
    $wid = rand(0,32767); // appears to be a random integer initiated when the browser starts.
    $act = "00000000000"; // ???
    $ssarray = array ("800x800", "1024x768", "1280x768", "1280x800",
    "1280x1024", "1600x1200", "1680x1050", "1920x1200");
    shuffle($ssarray);
    $ss = $ssarray[0]; // browser screensize. Resulting value is chosen at random from an array of values.
    $bw = "1523"; // bandwidth? probably used in calculating metrics related to visitor connection speeds (noted values are close to common
    // connection speeds like 768k, 1mb, 1.5mb, etc.)
    $t = "0"; // ???
    $ttl = rand(200,1000); // time-to-live? probably used in calculating average load times
    $vis = "1"; // ???
    $rq = rand(15,80); // appears to increment with each toolbar request
    $url = "http://<<<PUT YOUR DOMAIN HERE>>>/";

    $params="/data/".$keyid."?cli=".$cli."&dat=".$dat."&ver=".$ver."&cdt=".$cdt."&wid=".$wid."&act=".$act."&ss=".$ss."&bw=".$bw."&t=".$t."&ttl=".$ttl."&vis=".$vis."&rq=".$rq."&url=".$url;

    return $domain.$params;
    }
    ---------------------

    Finally, insert somewhere on your page the following:

    ---------------------
    <? echo "<img src='".alexa()."' height='0' width='0'>"; ?>
    ---------------------

    That will trigger the actual event.

    Somebody else can probably clean and extend this code up better than I.


    Just tought a few people may be intrested in this, If not then feel free to sent it to the shitter :)
     
  2. masako

    masako Junior Member

    Joined:
    Oct 8, 2008
    Messages:
    105
    Likes Received:
    16
    I've heard mention of something similar on the forums before, and I believe the consensus was that the code no longer works with the updated version of Alexa; can anyone else comment on this?
     
  3. garyrob

    garyrob Newbie

    Joined:
    Oct 29, 2008
    Messages:
    16
    Likes Received:
    2
    Occupation:
    Self Employed
    Location:
    Canada
    Yep, that code is oudated! Scrap it.
     
  4. livelybrowser

    livelybrowser Senior Member

    Joined:
    Nov 20, 2008
    Messages:
    935
    Likes Received:
    371
    Home Page:
    Alexa provides a web service for you to query their ranking, however, this service is not free. Need to pay to use it.
     
  5. jcw2001

    jcw2001 Newbie

    Joined:
    Nov 26, 2008
    Messages:
    3
    Likes Received:
    0
    Does anyone know what Alexa changed, just out of interest?
     
  6. hayama

    hayama Registered Member

    Joined:
    Nov 4, 2008
    Messages:
    96
    Likes Received:
    37
    That's unfortunate, I was going to implement the script. Thanks for saving me the time.
     
  7. HeXeR

    HeXeR Junior Member

    Joined:
    Dec 30, 2007
    Messages:
    121
    Likes Received:
    15
    Occupation:
    Self-employed
    Location:
    EU
    Home Page:
    Well, LiveHeaders Fo FireFox shows requests like this ...

    http:// xml.alexa.com/data?cli=10&dat=nsa&ver=quirk-searchstatus&uid=20081012220300&userip=192.168.1.101&url=http%3A//domain.com/

    when I open domain.com, and I'm behind router so my local IP is 192.168.1.101...

    But if you'll request this with php (server-side) I guess your alexa rank won't rise (all requests will came from same IP).

    But there is another way ... you can request url with JavaScript (client side - 1 visit = 1 ip) ... it may work, but i didn't try jet ..
     
  8. nilup

    nilup Newbie

    Joined:
    Jun 26, 2008
    Messages:
    12
    Likes Received:
    0
    One simple way is to install the alexa bar on your computer at home at check the website once a day, it will easily take you to 200k or so , do this with a few different ip numbers and you should get down to 100k
     
  9. gullsinn

    gullsinn Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 24, 2009
    Messages:
    2,429
    Likes Received:
    2,210
    Gender:
    Male
    Occupation:
    Jobless :D
    Location:
    Graveyard
    Home Page:
    Don't you think by using this script you'll be banned from Google.
    I would like to suggest try this method
    Code:
     http://www.blackhatworld.com/blackhat-seo/white-hat-seo/487844-complete-guide-decrease-improve-alexa-blog.html