This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
In order to add this to your machine, copy the hosts, and add
it to your hosts
file which can be found in the following locations
macOS X, iOS, Android, Linux: /etc/hosts
.
%SystemRoot%\system32\drivers\etc\hosts
.
There are two hosts
files in this repo, one which uses 0.0.0.0
and
one which uses 127.0.0.1
. If you are not sure which is right, use
0.0.0.0
as it is faster and will run on essentially all machines.
However, if you know what you're doing and need a 127.0.0.1
version, it
is available here
Additionally, there is a new hosts file which will force Safe Search in the safer and privacy enhanged duckduckgo.
For unsafe search portals, we have added Bing
and Google
"safe search ips".
However it has not been tested yet as both are privately blocked for privacy
issues with both of them.
It can be found here
If you are so lucky that you have updated your system to use a DNS resolver
rather than abusing your disk-IO with the hosts
file, we also generate a few
zone files for Unbound, dnsmasq and regular RPZ supported resolvers.
Note: If you'll read more about why you should switch to a local DNS resolver, Please read this thread at @StevenBlacks hosts project
You'll find the RPZ formatted file in the dns_zones/ folder as
pornhosts.mypdns.cloud.rpz
The syntax used for is to provide a NXDOMAIN
response
Ex.
femjoynude.com CNAME .
*.femjoynude.com CNAME .
The Unbound formatted file is generated with the always_nxdomain
syntax.
Ex.
local-zone: "yspmedia.gitlab.io" always_nxdomain
The file is found under the dns_zones/ as
pornhosts.mypdns.cloud.zone
The dnsmasq formatted file is located in the dns_zones/ folder as
dnsmasq
Any helpful contributions are appreciated