gaenserich / hostsblock

an ad- and malware-blocking script for Linux
https://github.com/gaenserich/hostsblock
225 stars 28 forks source link

getting rid of some odd entries #48

Closed Sadi58 closed 9 years ago

Sadi58 commented 9 years ago

In addition to "0.0.0.0" and "0.0.0.0 0.0.0.0" I've mentioned before, today I've noticed this line in my hosts.block file - from http://hostsfile.mine.nu: "0.0.0.0 PNAP-WDC002"

Although these are harmless, I wonder if we could get rid of such entries by adding this (hopefully harmless) command as well: sed "/^[0-9].*[0-9][$\r]/d"

Sadi58 commented 9 years ago

On second thought, invalid entries in blocklists should be removed at the source