I use cookies and HTML5 local storage to give you the best experience on my website. More information Agree & close

Copyright © Lauritz Thomsen 2016.

HostsPrivacy

HostsPrivacy is an open-source, lightweight utillity that blocks common online trackers, including Google Analytics, KISSmetrics and Facebook Connect, as well as tracking ads straight from the hosts file on your computer, tablet or phone. No addon required.

Manual installation

Requires rooting.

HostsPrivacy is not available for iOS.

HostsPrivacy Snippet (.txt)

  1. Open a plain text editor with administrator/root privileges.

  2. Open

    • Windows: %SystemRoot%\System32\drivers\etc\hosts.

    • Mac/Linux/Android*/Other Unix: /etc/hosts.

  3. Copy and paste the snippet below.

  4. Save the file.

Please note that some systems may require an empty line below the contents of the file.

# HostsPrivacy 1.2 - Created by Lauritz Thomsen - lauritzt.dk/hp
# Copyright (C) Lauritz Thomsen - Licensed under the MIT license
# Release date: 23 Sep 2015 - Check r.lauritzt.dk/hp for updates

# Everything Google related
0.0.0.0 google-analytics.com analytics.google.com www.google-analytics.com
0.0.0.0 doubleclick.net www.doubleclick.net fls.doubleclick.net
0.0.0.0 g.doubleclick.net googleads.g.doubleclick.net securepubads.g.doubleclick.net cm.g.doubleclick.net stats.g.doubleclick.net
0.0.0.0 googlesyndication.com www.googlesyndication.com tcp.googlesyndication.com pagead2.googlesyndication.com
0.0.0.0 googleadservices.com www.googleadservices.com
# Google Tag Services may be required for some sites to function, and is not blocked by default.
#0.0.0.0 googletagservices.com www.googletagservices.com

0.0.0.0 adform.com www.adform.com adform.net www.adform.net track.adform.net s1.adform.net o.aolcdn.com
0.0.0.0 atwola.com www.atwola.com at.atwola.com uk.at.atwola.com
0.0.0.0 cms.analytics.yahoo.com
0.0.0.0 pixel.quantcast.com
0.0.0.0 b.scorecardresearch.com sb.scorecardresearch.com
0.0.0.0 krxd.net www.krxd.net cdn.krxd.net beacons.krxd.net
0.0.0.0 imrworldwide.com www.imrworldwide.com
0.0.0.0 outbrain.com www.outbrain.com
0.0.0.0 chartbeat.com www.chartbeat.com
0.0.0.0 neustar.net www.neustar.net neustar.biz www.neustar.biz neustar.com www.neustar.com
0.0.0.0 adadvisor.net www.adadvisor.net
0.0.0.0 addthis.com www.addthis.com
0.0.0.0 stats.wordpress.com
0.0.0.0 connect.facebook.com
0.0.0.0 api.bttrack.com
0.0.0.0 kissmetrics.com www.kissmetrics.com
0.0.0.0 comscore.com www.comscore.com
0.0.0.0 qualaroo.com www.qualaroo.com
0.0.0.0 bluekai.com www.bluekai.com tags.bluekai.com bkrtx.com www.bkrtx.com tags.bkrtx.com
0.0.0.0 towerdata.com www.towerdata.com
0.0.0.0 rapleaf.com www.rapleaf.com
0.0.0.0 static.chartbeat.com
0.0.0.0 taboola.com www.taboola.com
0.0.0.0 newrelic.com www.newrelic.com newrelic.net www.newrelic.net js-agent.newrelic.com bam.nr-data.net nr-data.net
0.0.0.0 quantserve.com www.quantserve.com
0.0.0.0 moat.com www.moat.com moatads.com www.moatads.com js.moatads.com
# End of HostsPrivacy - Email hpfeedback@lauritzt.dk with feedback

Integrity verification

Sha256 hash: e7ab0836e053d6345f850bd61165a2aa0639849ddadc78997cda64b33ecd5377

Download OpenPGP signatures: hostsprivacy.txt

Get my public OpenPGP key
0x02144E692C84BBB2

License

The HostsPrivacy snippet is licensed under the MIT license.

Copyright © Lauritz Thomsen 2015.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

*Android requires rooting. All trademarks are the property of their respective owners. Feedback.