Block malware and not "friendly" sites on your local network.
sh ./adhosts.sh update - update hosts file
sh ./adhosts.sh start - start http server
- Add addition hosts file to config:
/etc/config/dhcp=> [config dnsmasq]list addnhosts '/path/to/adhosts/hosts'
- Set execute flags
chmod 777 ./adhosts.sh
- Set cron task
* * * */1 * sh /path/to/adhosts/adhosts.sh update
- Set startup (/etc/rc.local) task:
sh /path/to/adhosts/adhosts.sh start