reject-data-source.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /** @type {[string, boolean][]} */
  2. const HOSTS = [
  3. ['https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext', true],
  4. ['https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt', false],
  5. ['https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt', false]
  6. ]
  7. const ADGUARD_FILTERS = [
  8. // Easy List
  9. [
  10. 'https://easylist.to/easylist/easylist.txt',
  11. [
  12. 'https://easylist-downloads.adblockplus.org/easylist.txt',
  13. 'https://raw.githubusercontent.com/easylist/easylist/gh-pages/easylist.txt',
  14. 'https://secure.fanboy.co.nz/easylist.txt'
  15. ]
  16. ],
  17. // AdGuard DNS Filter
  18. 'https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt',
  19. // uBlock Origin Filter List
  20. [
  21. 'https://ublockorigin.github.io/uAssets/filters/filters.txt',
  22. [
  23. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters.txt',
  24. 'https://ublockorigin.pages.dev/filters/filters.txt'
  25. ]
  26. ],
  27. [
  28. 'https://ublockorigin.github.io/uAssets/filters/filters-2020.txt',
  29. [
  30. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2020.txt',
  31. 'https://ublockorigin.pages.dev/filters/filters-2020.txt'
  32. ]
  33. ],
  34. [
  35. 'https://ublockorigin.github.io/uAssets/filters/filters-2021.txt',
  36. [
  37. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2021.txt',
  38. 'https://ublockorigin.pages.dev/filters/filters-2021.txt'
  39. ]
  40. ],
  41. [
  42. 'https://ublockorigin.github.io/uAssets/filters/filters-2022.txt',
  43. [
  44. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2022.txt',
  45. 'https://ublockorigin.pages.dev/filters/filters-2022.txt'
  46. ]
  47. ],
  48. // uBlock Origin Badware Risk List
  49. [
  50. 'https://ublockorigin.github.io/uAssets/filters/badware.txt',
  51. [
  52. 'https://ublockorigin.github.io/uAssetsCDN/filters/badware.txt',
  53. 'https://ublockorigin.pages.dev/filters/badware.txt'
  54. ]
  55. ],
  56. // uBlock Origin Privacy List
  57. [
  58. 'https://ublockorigin.github.io/uAssets/filters/privacy.txt',
  59. [
  60. 'https://ublockorigin.github.io/uAssetsCDN/filters/privacy.txt',
  61. 'https://ublockorigin.pages.dev/filters/privacy.txt'
  62. ]
  63. ],
  64. // uBlock Origin Resource Abuse
  65. [
  66. 'https://ublockorigin.github.io/uAssets/filters/resource-abuse.txt',
  67. [
  68. 'https://ublockorigin.github.io/uAssetsCDN/filters/resource-abuse.txt',
  69. 'https://ublockorigin.pages.dev/filters/resource-abuse.txt'
  70. ]
  71. ],
  72. // uBlock Origin Unbreak
  73. [
  74. 'https://ublockorigin.github.io/uAssets/filters/unbreak.txt',
  75. [
  76. 'https://ublockorigin.github.io/uAssetsCDN/filters/unbreak.txt',
  77. 'https://ublockorigin.pages.dev/filters/unbreak.txt'
  78. ]
  79. ],
  80. // AdGuard Base Filter
  81. 'https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt',
  82. // AdGuard Mobile AD
  83. 'https://filters.adtidy.org/extension/ublock/filters/11.txt',
  84. // AdGuard Tracking Protection
  85. 'https://filters.adtidy.org/extension/ublock/filters/3.txt',
  86. // AdGuard Japanese filter
  87. 'https://filters.adtidy.org/extension/ublock/filters/7.txt',
  88. // AdGuard Chinese filter (EasyList China + AdGuard Chinese filter)
  89. 'https://filters.adtidy.org/extension/ublock/filters/224.txt',
  90. // Easy Privacy
  91. [
  92. 'https://easylist.to/easylist/easyprivacy.txt',
  93. [
  94. 'https://secure.fanboy.co.nz/easyprivacy.txt',
  95. 'https://raw.githubusercontent.com/easylist/easylist/gh-pages/easyprivacy.txt',
  96. 'https://easylist-downloads.adblockplus.org/easyprivacy.txt'
  97. ]
  98. ],
  99. // Curben's UrlHaus Malicious URL Blocklist
  100. [
  101. 'https://curbengh.github.io/urlhaus-filter/urlhaus-filter-agh-online.txt',
  102. [
  103. 'https://urlhaus-filter.pages.dev/urlhaus-filter-agh-online.txt',
  104. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  105. // 'https://malware-filter.gitlab.io/urlhaus-filter/urlhaus-filter-agh-online.txt'
  106. ]
  107. ],
  108. // Curben's Phishing URL Blocklist
  109. [
  110. 'https://curbengh.github.io/phishing-filter/phishing-filter-agh.txt',
  111. [
  112. 'https://phishing-filter.pages.dev/phishing-filter-agh.txt',
  113. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  114. // 'https://malware-filter.gitlab.io/malware-filter/phishing-filter-agh.txt'
  115. ]
  116. ],
  117. // Curben's PUP Domains Blocklist
  118. [
  119. 'https://curbengh.github.io/pup-filter/pup-filter-agh.txt',
  120. [
  121. 'https://pup-filter.pages.dev/pup-filter-agh.txt',
  122. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  123. // 'https://malware-filter.gitlab.io/malware-filter/pup-filter-agh.txt'
  124. ]
  125. ],
  126. // GameConsoleAdblockList
  127. 'https://raw.githubusercontent.com/DandelionSprout/adfilt/master/GameConsoleAdblockList.txt',
  128. // PiHoleBlocklist
  129. 'https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV-AGH.txt',
  130. // Spam404
  131. 'https://raw.githubusercontent.com/Spam404/lists/master/adblock-list.txt'
  132. ];
  133. const PREDEFINED_WHITELIST = [
  134. 'localhost',
  135. 'broadcasthost',
  136. 'ip6-loopback',
  137. 'ip6-localnet',
  138. 'ip6-mcastprefix',
  139. 'ip6-allnodes',
  140. 'ip6-allrouters',
  141. 'ip6-allhosts',
  142. 'mcastprefix',
  143. 'skk.moe',
  144. 'analytics.google.com',
  145. 'msa.cdn.mediaset.net', // Added manually using DOMAIN-KEYWORDS
  146. 'cloud.answerhub.com',
  147. 'ae01.alicdn.com',
  148. 'whoami.akamai.net',
  149. 'whoami.ds.akahelp.net',
  150. 'pxlk9.net.', // This one is malformed from EasyList, which I will manually add instead
  151. 'instant.page', // No, it doesn't violate anyone's privacy. I will whitelist it
  152. 'piwik.pro',
  153. 'mixpanel.com',
  154. 'cdn.mxpnl.com',
  155. 'heapanalytics.com',
  156. 'segment.com',
  157. 'segmentify.com',
  158. 't.co', // pgl yoyo add t.co to the blacklist
  159. 'survicate.com', // AdGuardDNSFilter
  160. 'perfops.io', // AdGuardDNSFilter
  161. 'd2axgrpnciinw7.cloudfront.net', // ADGuardDNSFilter
  162. 'tb-lb.sb-cd.com', // AdGuard
  163. 'storage.yandexcloud.net', // phishing list
  164. 'login.microsoftonline.com' // phishing list
  165. ];
  166. module.exports.HOSTS = HOSTS;
  167. module.exports.ADGUARD_FILTERS = ADGUARD_FILTERS;
  168. module.exports.PREDEFINED_WHITELIST = PREDEFINED_WHITELIST;