4skinSkywalker / Anti-Porn-HOSTS-File

Hosts file for "blocking" porn sites
MIT License
149 stars 63 forks source link

Improved HOSTS.txt #104

Open NeverGameStar opened 9 months ago

NeverGameStar commented 9 months ago

This HOSTS.txt file differs largely:

  1. I merged the original HOSTS.txt with the "porn" hosts file from https://github.com/StevenBlack/hosts.
  2. I removed duplicate and dead URLs, as well as few non-porn-sites.
  3. I checked every working URL for possible subdomains using WolframAlpha and added "www." as standard subdomain whenever it was reachable (by zero.dns0.eu).
  4. I compressed 9 URLs into each line (Tab-seperated) in order to prevent issues with DNS-Client service under Windows.

This results in now over 73k porn domains being blocked.

4skinSkywalker commented 9 months ago

Hi, sorry to bother you but isn't the StevenBlack porn a 50Kish record file? I see that you made 80K+ line changes in your commits, are you sure about them?

NeverGameStar commented 9 months ago

Hi, sorry to bother you but isn't the StevenBlack porn a 50Kish record file? I see that you made 80K+ line changes in your commits, are you sure about them?

Yeah, I included all working domains from your list and StevenBlack porn record file - so a few dead domains and duplicates between these two are removed. Originally, my file had 73k+ lines, but since that caused CPU spikes because of the DNS-client service I compressed 9 entries together into one line, therefore just having about 8,2k lines. All those domains are still perfectly blocked, yet I don't get issues with performance this way.

The only downside from my file is that there are some non-porn-sites still included, since I have to remove them manually (just pushed a commit that removed ikea.com and it's subdomains).

4skinSkywalker commented 6 months ago

Well, that downside you've pointed out is something we don't want. I think we once merged with another host file, like the one you mentioned, and people complained about non-porn links.