Skip to content

just a "topping" hosts file that blocks anything bad

License

Notifications You must be signed in to change notification settings

MDP43140/BaDomain

Repository files navigation

BaDomain (aka. Bad Domains)

this is an addon hosts file that blocks more bad things. this hosts file was only meant to improve blocking of your existing hosts list.

What type of domains BaDomain (general hosts file) is blocking:

  • Advertising.
  • Tracking.
  • Malware.
  • Scam/Malvertising.
  • Adult websites.
  • Gambling.
  • Chinese domains (.cn).
  • Russian domains (.ru).
  • Social media (Facebook, TikTok. optional).

Optional (included as separate misc hosts file):

Contributing

You can help improve this project by creating a new issue, or merge request of domains that you think should be added/removed, or even other smaller things.

nonsense (u can safely ignore this :) I'm scraping the domains by deploying a free tethering (at public places). with ad-blocking, using AdAway, with these hosts lists: + [1Hosts](https://github.com/badmojr/1Hosts) + [DanHorton's TikTok Blocklist](https://github.com/danhorton7/pihole-block-tiktok/blob/main/tiktok.txt) + [GoodByeAds + GoodbyeAds YouTube](https://github.com/jerryn70/GoodBye-Ads) + [StevenBlack](https://github.com/StevenBlack/hosts) + (and of course, my own blocklist, this project)

then i use AdAway's DNS Activity tab to monitor DNS Activity then scrap any:

  • Unknown domains.
  • Chinese domains (where lots of bad stuff happening, eg. *.cn, tiktok.com).
  • Russian domains (mostly gambling, porn, invasive tracking/advertising, etc. eg. *.ru).
  • Advertising/Tracking/Malware domains (eg. adx.com, thinkingdata.cn, obstremswiev.site, just to name a few).
  • Game server domains (optional/miscellaneous, eg. Free fire/garena, MLBB/moonton/youngjoygame/yuanzhan, COC, PUBG/tencent).

that are not on the hosts list listed above and:

  • add these to "private lists".
  • Export the configuration file.
  • Parse the "blocked" section on "adaway-backup.json".
  • and add it to BaDomain.

I did the same with my DD-WRT home router, where i set up DNS over TLS and redirected all unencrypted DNS to this, and writing my own script that runs at startup that runs tcpdump to collect only DNS queryies from local devices and later i can grab the file to my PC, send it to my phone, and replace dns_log.txt in adaway cache with the tcpdump log that i sent from my PC, and did the same thing with DNS activity things