elementary / default-settings

Default settings for elementary OS
GNU General Public License v3.0
39 stars 28 forks source link

Block malware with HOSTS file #63

Closed jepotter1-archive closed 6 years ago

jepotter1-archive commented 6 years ago

e.g. Malware Domain List, Coin Blocker List.

Other considerations:

xfbs commented 6 years ago

I don't think this is necessary, because:

codygarver commented 6 years ago

Agree with @xfbs, the potential side-effects are really bad. Good idea for an AppCenter submission though.

jepotter1-archive commented 6 years ago

@xfbs Cryptojacking and malvertising are big problems, and not platform specific. They aren't blocked by Google Safe Browsing.

e.g.

coinhive.com
propellerads.net
deloton.com
coinimp.com
adless.io
popads.net

There is no reason any website should rely on these domains to function.

xfbs commented 6 years ago

I don't disagree with you, there are some shady things going on in the internet. But that's not something a hosts file should be used to try to fix. First, anything ad-related is best taken care of in the browser. Sure, Google Safe Browsing isn't a panacea. But there's also adblockers like uBlock Origin. Adblockers like these are much more efficient at blocking, because in addition to blacklisting they can also use heuristics to block content.

Then the other issue is that hosts-file based black lists can only block known domain names. It takes 10 seconds and about $6 for me to register a new domain name. I can do that all day (until the money runs out). And the other reason is that if people want to, they could host malicious content on CDNs or other public sites (do you want to block all of Akamai's CDN just because they host one malicious javascript?)

I don't think any distro should block any domain names by default, just like we don't want ISPs or governments to block anything. People should have the means to do it themselves in a sensible way, maybe by installing a proper adblocker, or by editing the hosts file themselves if they are so inclined.