Hosts file

Alex, March 31, 2017 07:21
To keep malware out I block traffic to known malware sites using all possible tools. You probably have installed uBlock origin, privacy badger, ghostery, spybot, malwarebytes, windows defender and tools like that on all your computers too. To make things easier I wanted to block well known malware sites on my border router running openWRT.

/etc/hosts

I have gathered domains and host names from a variety of sources listed below and combined them to one large hosts file that will change the IP address for these website to 0.0.0.0 or 127.0.0.1. My personal setup is to have the IP address of 192.168.10.21 and I have a small website running at that IP address informing the user this website is blocked.

Downloads

If you want to use the same file as me you can download it here below. It is updated monthly-ish and is provided as is. If you like, please give hugs and kisses to the organizations and people below.
hosts file resolving to 0.0.0.0
hosts file resolving to 127.0.0.1
hosts file resolving to 192.168.0.21
hosts file resolving to 192.168.1.21
hosts file resolving to 192.168.10.21
hosts file resolving to 255.255.255.255

Total hosts blocked: 70,000 and counting!

Cronjob on router

Create a new cronjob on your openWRT instance:
wget -O /etc/hosts https://hackpending.com/hosts.txt && /etc/init.d/dnsmasq restart

Credits

I have added a couple of sites myself - but 99% is copied from free and/or open source projects. Please donate, share, care or do whatever you can to support these greate projects.