Outils pour utilisateurs

Outils du site


dns-blocklist-en

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
dns-blocklist-en [2019/02/14 08:03] – [FAQ] sebsauvagedns-blocklist-en [2024/01/02 13:19] (Version actuelle) – [Sources] sebsauvage
Ligne 24: Ligne 24:
 Drawbacks: Drawbacks:
   * Does not filter //everything//.   * Does not filter //everything//.
 +  * Some software may perform DNS resolution themselves instead of using the system DNS. They may therefore work around your DNS blocklist.
  
 You do not need to worry: The setup is easy to reverse. You do not need to worry: The setup is easy to reverse.
Ligne 29: Ligne 30:
 <note>As an example, a typical CNN page is 20 Mb. With this DNS blocklist alone, it drops to 10 Mb. This is a 50% gain. Not only the page will load faster, but you will save on your data and phone bills, even if you use a browser which is not capable of filtering.</note> <note>As an example, a typical CNN page is 20 Mb. With this DNS blocklist alone, it drops to 10 Mb. This is a 50% gain. Not only the page will load faster, but you will save on your data and phone bills, even if you use a browser which is not capable of filtering.</note>
  
-===== Lists =====+----
  
-I'm using these lists: +===== List =====
-  * https://adaway.org/hosts.txt +
-  * https://someonewhocares.org/hosts/hosts +
-  * https://hosts-file.net/ad_servers.txt +
-  * https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt +
-  * https://www.malwaredomainlist.com/hostslist/hosts.txt +
-  * https://mirror.cedia.org.ec/malwaredomains/justdomains +
-  * http://winhelp2002.mvps.org/hosts.txt +
-  * https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext +
- +
-They are long-lasting reputable sources.+
  
-To make things easier, I have aggregated these sources in a single file (duplicates removed, resolution in 0.0.0.0):+<WRAP center round box 60% caution centeralign> 
 +<html><big><big></html>URL to use: **https://sebsauvage.net/hosts/hosts**<html></big></big></html> 
 +</WRAP>
  
-^ URL ^ Size ^ Number of blocked domains ^ Notes ^ 
-| **<wrap hi>https://sebsauvage.net/hosts/hosts</wrap>** \\ **[RECOMMENDED]** | 3,1 Mb | around 98'000 | hosts format \\ **Suited for Android and computers** \\ This hosts file can be used as is in Windows, Linux, MaOSX and in Blokada and DNS66 on Android. | 
-| **https://sebsauvage.net/hosts/hosts-adguard** | 2,6 Mb | around 98'000 | AdGuard/uBlock-Origin format \\ **Suited for Android and computers** \\ This list can be used in AdGuard (on Android) and uBlock-Origin. | 
 ==== What does this list blocks ? ==== ==== What does this list blocks ? ====
  
  
-  * Web advertising (//smartadserver.com, doubleclick.net, googleadservices.com, googlesyndication.com, tradedoubler.com, adbrite.com, yimg.com(YahooAds)...//), including site-specific domains (//ad.paypal.com, ad.foxnetworks.com, ads.sun.com...//)+  * Web advertising (//smartadserver.com, doubleclick.net, googleadservices.com, googlesyndication.com, tradedoubler.com, adbrite.com, yimg.com(YahooAds)...//), including site-specific domains (//ad.paypal.com, ad.foxnetworks.com, ads.sun.com...//), including first-party advertising and tracking.
   * Malvertising (advertising networks known for spreading malware, trojan horses...) (//adshufffle.com, conduit.com...//)   * Malvertising (advertising networks known for spreading malware, trojan horses...) (//adshufffle.com, conduit.com...//)
   * Advertising in mobile applications (//admob.com, inmobi.com, mopub.com, adinfuse.com...//)   * Advertising in mobile applications (//admob.com, inmobi.com, mopub.com, adinfuse.com...//)
   * Web analytics (//google-analytics.com, scorecardresearch.com, quantserve.com...//)   * Web analytics (//google-analytics.com, scorecardresearch.com, quantserve.com...//)
   * Mobile applications analytics (//crashlytics.com, applovin.com, flurry.com...//   * Mobile applications analytics (//crashlytics.com, applovin.com, flurry.com...//
 +  * Analytics/tracking from smartphone manufacturers (//nmetrics.samsung.com, sdkconfig.ad.xiaomi.com, tracking.intl.miui.com...//)
   * Tracking services (canvas fingerprinting, evercookies...).   * Tracking services (canvas fingerprinting, evercookies...).
 +  * First-party trackers.
   * Social badges and buttons (//addthis.com, badges.instagram.com, badge.stumbleupon.com...//)   * Social badges and buttons (//addthis.com, badges.instagram.com, badge.stumbleupon.com...//)
   * Web site counters (//sitemeter.com, free-counter.co.uk, webcounter.com, statcounter.com...//)   * Web site counters (//sitemeter.com, free-counter.co.uk, webcounter.com, statcounter.com...//)
Ligne 65: Ligne 57:
   * Websites designed to shock (//goatse, 2girls1cup...//)   * Websites designed to shock (//goatse, 2girls1cup...//)
   * Domains linked to Windows 10 tracking/reporting/telemetry (//reports.wes.df.telemetry.microsoft.com, feedback.microsoft-hohm.com, telemetry.appex.bing.net, statsfe2.ws.microsoft.com...//)   * Domains linked to Windows 10 tracking/reporting/telemetry (//reports.wes.df.telemetry.microsoft.com, feedback.microsoft-hohm.com, telemetry.appex.bing.net, statsfe2.ws.microsoft.com...//)
 +
 +
 +==== Sources ====
 +
 +This list is an aggregation of the following sources:
 +  * https://adaway.org/hosts.txt
 +  * https://someonewhocares.org/hosts/hosts
 +  * https://winhelp2002.mvps.org/hosts.txt
 +  * https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext
 +  * https://hostfiles.frogeye.fr/firstparty-only-trackers-hosts.txt
 +  * https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
 +  * https://justdomains.github.io/blocklists/lists/easylist-justdomains.txt
 +  * https://justdomains.github.io/blocklists/lists/easyprivacy-justdomains.txt
 +  * https://justdomains.github.io/blocklists/lists/adguarddns-justdomains.txt
 +  * https://justdomains.github.io/blocklists/lists/nocoin-justdomains.txt
 +  * https://small.oisd.nl/
 +  * https://blocklistproject.github.io/Lists/phishing.txt
 +  * https://blocklistproject.github.io/Lists/ransomware.txt
 +  * https://dl.red.flag.domains/red.flag.domains.txt
 +  * <del>https://mirror.cedia.org.ec/malwaredomains/justdomains</del>
 +  * <del>https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt</del>
 +  * <del>https://www.malwaredomainlist.com/hostslist/hosts.txt</del>
 +  * <del>https://raw.githubusercontent.com/notracking/hosts-blocklists/master/dnscrypt-proxy/dnscrypt-proxy.blacklist.txt</del>
 +  * <del>https://blocklistproject.github.io/Lists/tracking.txt</del>
 +
 +The blocklist is available in several formats:
 +
 +^ URL ^ Notes ^
 +| **<wrap hi>https://sebsauvage.net/hosts/hosts</wrap>** \\ **[RECOMMENDED]** | hosts format (//''0.0.0.0 hostname''//) \\ **Suited for Android and computers** \\ This hosts file can be used as is in Windows, Linux, MaOSX and in personalDNSFilterr and DNS66 on Android. |
 +| **https://sebsauvage.net/hosts/hosts-adguard** | AdGuard/uBlock-Origin format (//''||hostname^''//) \\ **Suited for Android and computers** \\ This list can be used in AdGuard (on Android) and uBlock-Origin. |
 +| **https://sebsauvage.net/hosts/raw** | Raw format (//''hostname''//) (just the domains, no headers) |
 +
 +=== Whitelist ===
 +
 +These blocking lists make occasional mistakes. I have put some domains on a whitelist. These domains will never be blocked.
 +
 +<hidden Click to display>
 +^Domaine^Reason^
 +|sebsauvage.net|My own domain so that list updates are not blocked.|
 +|proxad.net|Professionnal french hosting company (branch of Free.fr ISP)|
 +|commentcamarche.net|Computer tutorials website|
 +|www.commentcamarche.net|Computer tutorials website|
 +|mail.gandi.net|Mail server of one of the biggest french professional hosting companies|
 +|c.orange.fr|Linked to the webmail of Orange, one of the biggest french ISP|
 +|iapref.orange.fr|Linked to the webmail of Orange, one of the biggest french ISP|
 +|iapref.wanadoo.fr|Linked to the webmail of Orange, one of the biggest french ISP|
 +|metric.gstatic.com|Some sub-domains are used for DoT (DNS-over-TLS)|
 +|ssl0.ovh.net|Mail servers hosts at OVH|
 +|60gp.ovh.net|Mail servers hosts at OVH|
 +|vboxsvr.ovh.net|Shared hosting at OVH|
 +|cdn.tagcommander.com|Required for LaPoste webmail|
 +|ae01.alicdn.com|Required to display images in AliExpress|
 +|www.sugarsync.com|Required for SugarSync cloud synchronization.|
 +|lilo.org|Searchengine|
 +|www.ismonaco.org|University|
 +|cpc.cx|URL shortener of CanardPC.|
 +|simplelogin.fr, simplelogin.io|Antispam mail service|
 +|go.icann.org|Non-profit internet coordination organization|
 +|idp.impots.gouv.fr|French IRS|
 +|ipfs.scalaproject.io|IPFS Gateway|
 +|app.simplelogin.io|Antispam email|
 +|t.co|Twitter URL shortener|
 +|transfer.sh|File transfer service|
 +|woopic.com|CDN used by Orange ISP|
 +|pushbullet.com|Automation API|
 +|l.bfmtv.com|BFMTV short URLs|
 +</hidden>
 +
 +\\
 +
 +PS: If you find a domain which should not be blocked, please let me know (by email, Mastodon, Wire or Telegram).
 +
 +
 +----
 +
 ===== Installation ===== ===== Installation =====
  
Ligne 78: Ligne 145:
 # Update the DNS blocklist from the web # Update the DNS blocklist from the web
 logger "hosts-update: Updating hosts." logger "hosts-update: Updating hosts."
-tempname=`tempfile`+tempname=`mktemp`
 echo "127.0.0.1 `hostname`" > $tempname echo "127.0.0.1 `hostname`" > $tempname
 printf "\n\n" >> $tempname printf "\n\n" >> $tempname
Ligne 99: Ligne 166:
  
 If this does not seem to work, run ''ipconfig /flushdns'' in a terminal. If this does not seem to work, run ''ipconfig /flushdns'' in a terminal.
 +
 +If you want the host file to be automatically updated, you can try the freeware //HostMan// [NOT TESTED] : http://www.abelhadigital.com/hostsman/
  
  
Ligne 105: Ligne 174:
 There are several Android applications capable to downloading and applying a blocklist. Please note that these applications use the VPN feature of Android. It's the only way for an application to collect network traffic of all other applications. You can use one of these applications: There are several Android applications capable to downloading and applying a blocklist. Please note that these applications use the VPN feature of Android. It's the only way for an application to collect network traffic of all other applications. You can use one of these applications:
  
-  * [[https://f-droid.org/fr/packages/org.blokada.alarm/|Blokada]] (sur F-Droid)+  * [[https://f-droid.org/fr/packages/dnsfilter.android/|personalDNSFilter]] (sur F-Droid)
   * [[https://f-droid.org/fr/packages/org.jak_linux.dns66/|DNS66]] (sur F-Droid)   * [[https://f-droid.org/fr/packages/org.jak_linux.dns66/|DNS66]] (sur F-Droid)
-  * [[https://f-droid.org/fr/packages/dnsfilter.android/|DNSFilter]] (sur F-Droid) 
  
 <note>As DNS filtering application use the VPN feature of Android, you cannot have your VPN **//and//** one of these three applications running simultaneously. It's either VPN or DNS filtering.</note> <note>As DNS filtering application use the VPN feature of Android, you cannot have your VPN **//and//** one of these three applications running simultaneously. It's either VPN or DNS filtering.</note>
  
 In each of these applications, disable the lists provided by default and add https://sebsauvage.net/hosts/hosts In each of these applications, disable the lists provided by default and add https://sebsauvage.net/hosts/hosts
- 
-| {{ :dns-blocklist:blokada-1-principal.png?direct&250 |}} | {{ :dns-blocklist:blokada-2-ajouter-source.png?direct&250 |}} | {{ :dns-blocklist:blokada-3-garder-en-vie.png?direct&250 |}} | 
-| Blokada main screen | In blacklists, use this button to add a new source with [[https://sebsauvage.net/hosts/hosts|this URL]] and disable other blocklists. | If Blokada is killed by Android, make sure these two options are enabled. | 
- 
-By default, Blokada will display a notification for each blocked domain. Give it a try ! Open your favorites applications to see what you are spared of. After a moment, you will probably want to disable the notifications: 
- 
-{{ :dns-blocklist:blokada-4-notifications.png?200 |}} 
  
 For an extra layer of security, you can use alternate DNS resolvers such as Quad9 (9.9.9.9/149.112.112.112): This resolver also dynamically blocks botnets. For an extra layer of security, you can use alternate DNS resolvers such as Quad9 (9.9.9.9/149.112.112.112): This resolver also dynamically blocks botnets.
  
-<note important>Regarding **Blokada**: +----
-  * I do **not** recommend the default blocklist provided by Blokada (//Energized Blue//) because it blocks legitimate websites (such as //www.commentcamarche.net//). +
-  * By default, Blokada imposes not restriction on GooglePlay, GoogleDrive and other Google applications. You should disable whitelists. +
-</note> +
  
 ===== Update ===== ===== Update =====
  
-I recommend updating the list every month. \\ Under Android, //Blokada// and //DNS66// are capable of updating the list automatically on a regular basis.+I recommend updating the list every week. \\ Under Android, //personalDNSFilter// and //DNS66// are capable of updating the list automatically on a regular basis. 
 + 
 +---- 
 ===== Security ===== ===== Security =====
  
Ligne 142: Ligne 202:
  
  
 +
 +----
  
 ===== FAQ ===== ===== FAQ =====
  
   * //Which Android application do you recommend ?//   * //Which Android application do you recommend ?//
-    * Blokada and DNS66 are equally good. Blokada are some more features, like notifications when a domain is blocked, and whitelists. I did not try //DNSFilter//.+    * personalDSNFilter is light and does a very good job.
   * //Why use 0.0.0.0 instead of 127.0.0.1 ?//   * //Why use 0.0.0.0 instead of 127.0.0.1 ?//
     * 0.0.0.0 is a valid, but non-routable address. It will fail immediately. Which is not the case of 127.0.0.1 which adds some latency.     * 0.0.0.0 is a valid, but non-routable address. It will fail immediately. Which is not the case of 127.0.0.1 which adds some latency.
   * //Why not add list X ?//   * //Why not add list X ?//
-    * //[[https://github.com/EnergizedProtection/block|Energized]] ?// +    * [[https://github.com/EnergizedProtection/block|Energized]] ? 
-      * Abusive blocking (eg. it blocks //www.commentcamarche.net// which is a computer science learning site.)+      * Abusive blocking (eg. it blocks www.commentcamarche.net which is a computer science learning site.)
     * //[[https://hosts-file.net/emd.txt|Malwares]] from hosts-file.net ?//     * //[[https://hosts-file.net/emd.txt|Malwares]] from hosts-file.net ?//
       * Abusive blocking (it blocks //mail.gandi.net//, which is the mail server of a large french hosting provider).       * Abusive blocking (it blocks //mail.gandi.net//, which is the mail server of a large french hosting provider).
Ligne 157: Ligne 219:
     * Your browser will simply display a "website not found" screen like the site never existed.     * Your browser will simply display a "website not found" screen like the site never existed.
   * //How often do you update your list ?//   * //How often do you update your list ?//
-    * On an irregular basis, but a least once a month.+    * Every day.
   * //What if your website disappears ?//   * //What if your website disappears ?//
     * My website has been online longer than Facebook and Twitter. Satisfied ?     * My website has been online longer than Facebook and Twitter. Satisfied ?
 +
 +----
  
dns-blocklist-en.1550131415.txt.gz · Dernière modification : 2019/02/14 08:03 de sebsauvage