Today Google launched their free tracking tool for webmasters. It keeps track of visitor movements and clicks on the webmaster's site. There are likely some visitors who don't like their movements and clicks to be analyzed in detail.
Now, to prevent this one simply has to add a line to his windows host file, which is located in system32/drivers/etc/host for windows xp and 2000 and in hosts/ for the other windows systems.
The line that needs to be added is
It redirects every request made to www.google-analytics.com to 127.0.0.1 which is your own system. The script can't find the js file and therefor nothing is reported.
Simply delete the line if you want to remove this again.
Prevent Google Analytics from Tracking your Visit
This is not to state that Google is trying to spread adware cookies (?), but rather, website owners take advantage of Google Analytics to determine what sites you are visiting, how many times you click on certain product or service categories, etc. There are certainly website owners that are simply collecting the data for demographic purposes and are not dropping cookies on your operating system as though they were feeding the cookie monster. However, the reality is that is can be safely assumed that most are collecting any data about user internet activity as they can. Now the question is how to stop it?
You definitely can stop Google Analytics from tracking your site visits. It is simply a matter of going to your Windows Hosts file and inserting the following line:
If you do not know how to access your Hosts file, then you need to know so that you can eliminate certain sites from accessing your computer. When a line such as the one above is added to the Hosts file, the browser cannot download the urchin.js file mentioned earlier. They can still identify that you have visited a site, but they cannot tell what you do after that.
The Windows 7 hosts file is located in C:\windows\system32\drivers\etc\ or %systemroot%\system32\drivers\etc\ and cannot be edited by normal users. To edit the hosts file, Click Start – search for “Notepad“, right-click and select “Run as Administrator“.
For Windows XP, the path is C:\windows\system32\drivers\etc\hosts, much as it is in Windows 7, but you are able to readily edit it without the need to use a text editor. All Windows Hosts files are located under \drivers\etc.
Once you have accessed the Hosts file, add the line described above and this will block Google Analytics from tracking your visits to websites. There are other lines that you can add to the Hosts file to further ensure security and privacy:
By including these lines in your Hosts file, you will also block Google AdSense. This gives you a greater level of privacy with your web searches and perhaps you won’t have as many pop-ups and spam coming to you. Good luck!Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.