Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 15 Dec 2018, 07:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
Hosts file : how to completely block Google and Facebook
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 1539
Location: Canada

PostPosted: Fri 02 Nov 2018, 19:38    Post subject:  Hosts file : how to completely block Google and Facebook
Subject description: take back your privacy by blocking domains linked to Google and Facebook
 

rufwoof has a post about Google and a hosts file to block it.

Here is the hosts file that blocks Google :
https://superuser.com/questions/1135339/cant-block-connections-to-google-via-hosts-file
Here is the hosts file that blocks Facebook : http://forums.radioreference.com/computer/269946-block-google-f-book-crap-using-your-hosts-file.html
https://secure.fanboy.co.nz/fanboy-antifacebook.txt
Here is the hosts file from mvps : http://winhelp2002.mvps.org/hosts.txt
With Google, Facebook and mvps combined, it should be hard to link you to websites you visit. Google and Facebook being the worse offenders in regard to privacy.
You can still browse the Web with DuckDuckGo, Startpage, searx.me, Dogpile, unbubble.eu, Qwant and others.

You can live without any Google and Facebook services. I do.

Here is a list of lesser known search engines to replace Google :
https://12bytes.org/tech/alternative-search-engines-that-respect-your-privacy

Original post :
rufwoof wrote:
Google is spyware. Period. To hinder that one of the Answers in this link shows how to add /etc/hosts entries to block google IP's https://superuser.com/questions/1135339/cant-block-connections-to-google-via-hosts-file

Also ensure you're not using 8.8.8.8 or other Google owned/controlled name resolvers (DNS). My ISP hub is fixed ... uses its (ISP's) DNS, but I have another router than connects to that hub that all other devices are then fed, and where that router permits setting the DNS (that is set to use one of the privacy based alternative DNS IP's i.e. neither our ISP nor Google).

Without google, even non-google web pages can be much much quicker. Yahoo news/finance for instance web pages are near unusable normally, but with google blocked in /etc/hosts they're more like 'normal' web pages (indicative of the extent of google spyware).

/etc/hosts can be swapped in/our, so keeping two versions and moving one/other into /etc/hosts as/when desired facilitates still being able to use google sites if/when there is a need to do so.

I add Steven Blacks and others hosts file entries in addition to that ... so as good as a adblock'er


Further reading :
https://filterlists.com/
https://github.com/AdroitAdorKhan/Energized
Ultimate hosts file (1,196,970 unique entries) :
https://raw.githubusercontent.com/EnergizedProtection/block/master/unified/formats/hosts

Last edited by labbe5 on Wed 21 Nov 2018, 21:10; edited 6 times in total
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Fri 09 Nov 2018, 00:51    Post subject:  

Is there something similar to totally block Microsoft?
_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 13167
Location: Gatineau (Qc), Canada

PostPosted: Fri 09 Nov 2018, 06:31    Post subject:  

disciple wrote:
Is there something similar to totally block Microsoft?
Way to go, disciple! Very Happy

Edit, 5 min. later:
Quote:
By blocking both FB *and* G, it's possible to make it appear as though the IQ
of the Web in general has risen about 100 points.
I love that comment at the bottom of the original source of that "block Google" hosts file! Smile
Now we know how the bar was lowered, and who did it!!!

TWYL

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1080
Location: Oslo, Norway

PostPosted: Mon 12 Nov 2018, 00:08    Post subject:  

The link
https://superuser.com/questions/1135339/cant-block-connections-to-google-via-hosts-file
is based on a forum post from april 2013: https://forums.radioreference.com/computer/269946-block-google-f-book-crap-using-your-hosts-file.html.

It won't do any harm to use it, I like it very much, but I'm sure those Google gurus must have come up with some additional sneaky links since then.
A problem I have seen recently, is that developers probably hard-code a dependency on some of these links. When I try to open certain sites, the spinner is just spinning along, while the status line shows that a script is searching for some crappy link.

BTW: When I sorted the latests HOSTS list from http://winhelp2002.mvps.org/hosts.htm, after removing the top commented-out text, and using musher0's code
Code:
sort +1 -2 -u HOSTS > newhosts.txt
from his post http://murga-linux.com/puppy/viewtopic.php?p=1009566#1009566, I noticed that the first entries in the sorted code are links that are commented out, and the reasons for that is potential harm to some services or products, explained in the text.

Code:
# 0.0.0.0 140cc.v.fwmrm.net #[affects videos]
# 0.0.0.0 ad-js.chip.de #[affects images]
# 0.0.0.0  adm.fwmrm.net #[affects nhl.com]
# 0.0.0.0 analytics.supplyframe.com #[affects findchips.com]
# 0.0.0.0 analytics.twitter.com #[affects Twitter Dashboard]
# 0.0.0.0 api.demandbase.com #[affects Ringcentral]
# 0.0.0.0 api.nanigans.com #[affects 2go.com]
# 0.0.0.0 api.solvemedia.com #[affects captcha]
# 0.0.0.0 appleglobal.112.2o7.net #[affects Apple site]
#  0.0.0.0 as.eu.angsrvr.com #[affects videos]
# 0.0.0.0 assets.adobedtm.com #[affects landsend.com]
# 0.0.0.0 assets.onswipe.com #[affects mobile devices]
# 0.0.0.0 beap.adss.yahoo.com #[affects Yahoo video]
# 0.0.0.0 cdn.jsdelivr.net #[affects spireenergy.com]
# 0.0.0.0 cdn.mxpnl.com #[affects optimum.com]
# 0.0.0.0 cdn.optimizely.com #[affects sigfig.com/ 2go.com]
# 0.0.0.0 cdns.gigya.com #[affects IHeartRadio]
# 0.0.0.0 cdn.tt.omtrdc.net #[affects Verizon]
# 0.0.0.0 cdn.vidible.tv #[affects Aol]
# 0.0.0.0 cdn.visiblemeasures.com #[affects Collegehumor.com]
# 0.0.0.0 citicorpcreditservic.tt.omtrdc.net
# 0.0.0.0 clck.yandex.ru
# 0.0.0.0 clicks.aweber.com #[affects newsletters]
# 0.0.0.0  clk.atdmt.com #[affects MS downloads]
# 0.0.0.0 d2gatte9o95jao.cloudfront.net #[affects urbandictionary.com]
# 0.0.0.0 d3c3cq33003psk.cloudfront.net #[affects sunglassesshop.com]
# 0.0.0.0 dap.digitalgov.gov #[Universal Federated Analytics]
# 0.0.0.0 delivery.vidible.tv #[affects aol.com]
# 0.0.0.0 dw.cbsi.com #[affects CNET downloads]
# 0.0.0.0 d.xp1.ru4.com #[affects Battlefield]
# 0.0.0.0 f.wishabi.net #[affects walmart.ca]
# 0.0.0.0 grade.market.yandex.ru
# 0.0.0.0 hb.disney.go.com #[affects links]
# 0.0.0.0 ib.adnxs.com #[affects Microsoft site]
# 0.0.0.0  id.rambler.ru #[affects Rambler email]
# 0.0.0.0 id.trove.com #[prevents registration]
# 0.0.0.0 idvisitor.washingtonpost.com #[affects login]
# 0.0.0.0 id.washingtonpost.com #[affects login]
# 0.0.0.0  imagesak.secureserver.net #[affects GoDaddy]
# 0.0.0.0 images.secureserver.net #[affects GoDaddy]
# 0.0.0.0 ip-api.com
# 0.0.0.0 js.maxmind.com #[affects marchon.com / directvnow.com]
# 0.0.0.0  libs.coremetrics.com #[affects tMobile/EverBank]
# 0.0.0.0 link.p0.com #[Affects email newsletters]
# 0.0.0.0 livepassdl.conviva.com #[affects videos]
# 0.0.0.0 liveperson.net
# 0.0.0.0 lptag.liveperson.net
# 0.0.0.0  media.richrelevance.com #[affects Walmart.ca]
# 0.0.0.0 metrics1.citibank.com #[affects login]
# 0.0.0.0 metrics.ancestry.co.uk #[affects login]
# 0.0.0.0 metrics.apple.com #[affects Apple site/MacOS]
# 0.0.0.0 metrics.consumerreports.org #[affects login]
# 0.0.0.0 metrics.skype.com
# 0.0.0.0  metrics.sprint.com #[affects login]
# 0.0.0.0 metrics.washingtonpost.com #[affects login]
# 0.0.0.0 metric.timewarnercable.com #[affects billing?]
# 0.0.0.0 metric.wtop.com #[affects login]
# 0.0.0.0 mpsnare.iesnare.com #[affects westernunion.com]
# 0.0.0.0 nexus.ensighten.com #[affects Subaru / Staples]
# 0.0.0.0 nl.sitestat.com #[affects Netherlands DigiD]
# 0.0.0.0  omni.macworld.com #[affects Safari]
# 0.0.0.0 po.st #[affects URL shortening]
# 0.0.0.0  rad.msn.com #[affects MSN Messenger]
# 0.0.0.0 realtime.services.disqus.com #[affects politicalwire.com]
# 0.0.0.0 redirector.googlevideo.com #[affects video playback]
# 0.0.0.0 redirect.viglink.com #[affects disqus.com]
# 0.0.0.0  s0.2mdn.net #[affects video stream]
# 0.0.0.0 s1.trrsf.com #[affects terra.com]
# 0.0.0.0 s2.mdpcdn.com #[affects bhg.com]
# 0.0.0.0 s2.trrsf.com #[affects terra.com]
# 0.0.0.0 sales.liveperson.net #[affects Live Chat]
# 0.0.0.0 scripts.demandbase.com #[affects ringcentral.com]
# 0.0.0.0 sec1.liveperson.net
# 0.0.0.0 secure.footprint.net #[affects nfl.com]
# 0.0.0.0 securemetrics.apple.com #[affects Apple site/MacOS]
# 0.0.0.0 segment-data.zqtk.net #[affects wsj.com]
# 0.0.0.0 server.iad.liveperson.net
# 0.0.0.0 s.marketwatch.com #[affects marketwatch]
# 0.0.0.0 spclient.wg.spotify.com #[affects mobile app]
# 0.0.0.0  stat3.cybermonitor.com #[affects podcasts]
# 0.0.0.0  static.2mdn.net #[affects Youtube]
# 0.0.0.0  static.chartbeat.com #[affects Healthcare.gov]
# 0.0.0.0 static.kleinezeitung.at
# 0.0.0.0 stats.adobe.com #[affects MacOS updates]
# 0.0.0.0  survey.112.2o7.net #[affect Sprint.com]
# 0.0.0.0  switch.atdmt.com #[affects Hotmail signup]
# 0.0.0.0 tags.api.umbel.com #[affects polygon.com]
# 0.0.0.0 tags.tiqcdn.com #[affects Intel.com/Shaw]
# 0.0.0.0 tiads.time.com #[affects Time.com]
# 0.0.0.0 tracking.waterfrontmedia.com #[affects MayoClinic]
# 0.0.0.0 vice-web-statics-cdn.vice.com #[affects vice.com]
# 0.0.0.0  view.atdmt.com #[affects Microsoft / Sprint.com]
# 0.0.0.0 w88.go.com #[affects espn.com]
# 0.0.0.0 widget-cdn.rpxnow.com #[affects amc.com]
# 0.0.0.0 wizard.liveperson.com
# 0.0.0.0 wurfl.io #[affects Google]
# 0.0.0.0 www.googletagmanager.com #[affects ASUS]
# 0.0.0.0 www.livefyre.com #[affects startribune.com]
# 0.0.0.0 www.liveperson.com #[affects citi.com]
# 0.0.0.0 www.luminate.com #[affects login]
# 0.0.0.0 www.sdad.guru #[affects msn.com]
# 0.0.0.0 www.securitymetrics.com #[affects bank login]
# 0.0.0.0  www.youtube-nocookie.com #[affects various videos]
# 0.0.0.0  wzus1.reference.com #[affects Dictonary.com]
# 0.0.0.0 yastatic.net #[affects Yandex Mail]

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
labbe5

Joined: 13 Nov 2013
Posts: 1539
Location: Canada

PostPosted: Wed 21 Nov 2018, 21:31    Post subject: host flash
Subject description: User Friendly Linux Hosts File Manager
 

Introducing Host Flash™ hosts file manager for Linux. Host Flash™ blocks access to domains that host undesirable content such as ads, malware and adult images. The program runs on Debian Linux computers like Ubuntu and Kubuntu.

In a nutshell, Host Flash™

downloads up to 8 hostname blacklists
merges those lists into one large compilation of bad hosts
adds a locally stored custom list of bad hosts into the mix
removes duplicate bad host entries from the compiled list of bad hosts
removes user defined white-listed hosts from the compiled list of bad hosts
installs the fully compiled bad hosts list into the computer’s hosts file

This setup program is interactively, which makes host file management quick and easy.

Source : https://journalxtra.com/linux/linux-hosts-file-manager-program

Further reading :
https://host-flash.com/
Back to top
View user's profile Send private message 
nosystemdthanks

Joined: 03 May 2018
Posts: 543

PostPosted: Wed 21 Nov 2018, 21:44    Post subject: Re: host flash
Subject description: User Friendly Linux Hosts File Manager
 

Code:
127.0.0.1 hello.firefox.com
127.0.0.1 input.mozilla.org
127.0.0.1 aus5.mozilla.org
127.0.0.1 crash-stats.mozilla.com
127.0.0.1 snippets.cdn.mozilla.net
127.0.0.1 marketplace.firefox.com
127.0.0.1 tiles.services.mozilla.com
127.0.0.1 api.getpocket.com
127.0.0.1 sb-ssl.google.com
127.0.0.1 safebrowsing.google.com
127.0.0.1 shavar.services.mozilla.com
127.0.0.1 en.malware-error.mozilla.com
127.0.0.1 en_us.malware-error.mozilla.com
127.0.0.1 en.phish-error.mozilla.com
127.0.0.1 en_us.phish-error.mozilla.com
127.0.0.1 en.phish-report.mozilla.com
127.0.0.1 en_us.phish-report.mozilla.com
127.0.0.1 self-repair.mozilla.org
127.0.0.1 search.services.mozilla.com
127.0.0.1 location.services.mozilla.com
127.0.0.1 detectportal.firefox.com
127.0.0.1 fhr.cdn.mozilla.net
127.0.0.1 fhr.data.mozilla.com
127.0.0.1 code.cdn.mozilla.net
127.0.0.1 push.services.mozilla.com
127.0.0.1 telemetry-experiment.cdn.mozilla.net
127.0.0.1 blocklist.addons.mozilla.org
127.0.0.1 services.addons.mozilla.org
127.0.0.1 versioncheck-bg.addons.mozilla.org
127.0.0.1 versioncheck.addons.mozilla.org
127.0.0.1 api.accounts.firefox.com
127.0.0.1 accounts.firefox.com
127.0.0.1 oauth.accounts.firefox.com
127.0.0.1 profile.accounts.firefox.com
127.0.0.1 token.services.mozilla.com
127.0.0.1 loop.services.mozilla.com
127.0.0.1 data.mozilla.com
127.0.0.1 setup.services.mozilla.com
127.0.0.1 auth.services.mozilla.com
127.0.0.1 services.mozilla.com
127.0.0.1 activations.cdn.mozilla.net
127.0.0.1 mozsocial.cliqz.com
127.0.0.1 incoming.telemetry.mozilla.org
Back to top
View user's profile Send private message Visit poster's website 
tallboy


Joined: 21 Sep 2010
Posts: 1080
Location: Oslo, Norway

PostPosted: Mon 10 Dec 2018, 18:07    Post subject:  

In upupbb-18.05 I found /usr/sbin/pup-advert-blocker, which actually makes a /etc/hosts file from several repos, as described in these posts. The script may be opened as text for reading.
I don't know how many Puppys that use the script, but it is included in woof-CE: https://github.com/puppylinux-woof-CE/woof-CE/blob/testing/woof-code/rootfs-skeleton/usr/sbin/pup-advert-blocker.
I have informed of a newer version being available: http://murga-linux.com/puppy/viewtopic.php?p=1012674#1012674

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0976s ][ Queries: 11 (0.0090s) ][ GZIP on ]