How to block yourself from Google Analytics

If you have any problems with your PC, Laptop or Mac or would like some advice on software, the internet, downloading or anything related, just post your query here.

Moderator: Frozen_pea

How to block yourself from Google Analytics

Postby CrazyChick » Fri 29 Mar, 2013 10:36 pm

Steps to block:

Open Windows Explorer and navigate to windows/system32/drivers/etc/hosts (note: Win98 users may find the hosts file in the windows folder)
Open the hosts file in Notepad – hosts file does not have an extension
Add the following two lines to the hosts file and save

127.0.0.1 www.google-analytics.com
127.0.0.1 ssl.google-analytics.com

Save and close the file
www.veign.com/blog/2007/01/29/how-to-bl ... analytics/


this site http://winhelp2002.mvps.org/hosts.htm gives a list of unwanted sites to block using the host trick here http://winhelp2002.mvps.org/hosts.txt



here's my question, concerning the 'save and close' statement, as the host file doesn't have an extension when you save and close you end up with the original hosts file and then the hosts.txt file that you've added the "127.0.0.1 ... " lines.

is that correct or what extension do you use when you save and close the hosts file you opened in Notepad... ?
2012 Motorsport Champions:
Formula 1: Sebastian Vettel, IRL: Ryan Hunter-Reay, NASCAR: Brad Keselowski, GP2: Davide Valsecchi, WSR: Robin Frijns, British F3: Jack Harvey, Euro F3: Daniel Juncadella, GP3: Mitch Evans, Formula 2: Luciano Bacheta.
WRC: Sebastien Loeb, BTCC: Gordon Sheddon, WTCC: Rob Huff, DTM: Bruno Spengler.
MotoGP: Jorge Lorenzo, WSB: Max Biaggi, BSB: Shane Byrne, Moto2: Marc Marquez, Moto 3: Sandro Cortese.
www.motorsportmumblings.co.uk/msm
User avatar
CrazyChick
Admin
 
Posts: 11392
Joined: Mon 13 Nov, 2006 5:13 pm
Location: JB: "Playing with my steering wheel"

Re: How to block yourself from Google Analytics

Postby famousCrispyDuck » Thu 04 Apr, 2013 11:04 pm

Well it shouldn't happen like that!!

I recently edited the hosts file on my Win7 machine, but did it in this order -

Start menu -> Type part of 'Notepad' (in the Search Programs and files box)

Notepad appears at the top of the list

Right click and select 'Run as Administrator'

In notepad - File -> Open -> Navigate to Windows/System32/drivers/etc

Click the drop down at the end of the box that, by default, says 'Text Documents (*.txt)' and select 'All Documents (*.*)'

Select 'hosts' and edit to suit

Select 'Save'

That saves as is, with no file extension - works for me.

However if it is prompting you for a file name when you go to save just enclose hosts in quotes, so you would actually type

"hosts"

exactly as shown, as the file name.
Image
-L'esprit de l'escalier-
User avatar
famousCrispyDuck
World Champion
 
Posts: 3377
Joined: Mon 09 Apr, 2007 11:49 pm
Location: England


Return to PC Clinic

Who is online

Users browsing this forum: No registered users and 1 guest

cron