How to fake it with Alexa?

Many people ask me why their website has a low Alexa rank. Alexa, an Amazon-owned analytics service shows and ranks different websites and can even tell one the audience their website is getting; including gender, education and age groups. The question often remains; How does Alexa work? Do they monitor the entire Internet?

The answer is a lot less mythical; it uses statistics from users who download the Alexa Toolbar (and fill in their gender, education, etc) and visit your website. It is commonly statistical sampling and has been done for the past 60 years for tv shows.

Being an engineer at heart, How does Alexa work? A little analysis at hand. Furthermore, with some scripting, you can boost your Alexa ratings quite a bit.

When the Alexa toolbar is downloaded, it creates a random 14 character identifier which identifies you as a unique user. The toolbar installation requires you to fill out some demographics, being gender, age group, race and so on. The unique identifier is replaced hereafter by: <RANDOM ID>

POST /php/demographics/index.php HTTP/1.1
Referer:<RANDOM ID>&plugin=alxf-2.14
Cookie: aid=<RANDOM ID>
Content-Type: application/x-www-form-urlencoded

amzn_id=&aid=<RANDOM ID>&browser=ff&plugin=alxf-2.14&gender=2&age=35-44&

This creates the demographics for a chosen <RANDOM ID>. You have a now a user “created” in the system which you can use for further data mining.

Subsequent requests, when somebody visits your website are done in form of GET requests to, where clicks are recorded. The full URL is as follows:<RANDOM ID>?cli=10&ver=alxf-2.14&dat=ns&

This request “logs” a request to, coming from It collects a few timestamp data as well to track how long users stay on your webpages, etc.

In essence, a web master could forge requests to this URL (in a <img> tag for example) to boost his/her site’s reputation on Alexa. To create a better varied audience, one could create several new “id’s” – dynamically using a script that performs the HTTP POST on the demographics gathering page – and include small html snippets to make ones site more popular. On top of this, knowing you can create your demographics, you can -virtually- make your site a lot more popular with a particulr gender, age group, race, etc.

In the end, you’re still serving your pages to users, it won’t attract any further visitors. You’re just faking that more users who visit your website also report this to Alexa – without them installing any toolbar.

Thank you,







One response to “How to fake it with Alexa?”

  1. Beh Avatar


    First of all, thanks for the article, it’s useful.

    I have a question, how I’m supposed to generate valid unique IDs?


Leave a Reply

Your email address will not be published. Required fields are marked *