![]() |
Re: [SCRIPT] - Ad-Blocking - Hosts file method
the only way to be secure is to trust the provider then xD
|
Re: [SCRIPT] - Ad-Blocking - Hosts file method
No, after cutting out the comments behind #-characters you can freely grep away any lines containing anything else than 0.0.0.0. :)
Code:
cat hosts.txt | grep -v ^# | cut -d "#" -f 1 | grep 0.0.0.0 | grep -v localhost >> /etc/hosts.tmp && cat /etc/hosts.base /etc/hosts.tmp >> /etc/hosts && rm /etc/hosts.tmp && sed 's/^ *//; s/ *$//; /$/d' /etc/hostsCode:
0.0.0.0 im.not.maliciousCode:
127.0.0.1 localhost localhost.localdomain |
Re: [SCRIPT] - Ad-Blocking - Hosts file method
Quote:
|
Re: [SCRIPT] - Ad-Blocking - Hosts file method
I know that this is an old thread and not a lot of ppl use this , btw I've only updated the main post: script improved and better guide.
|
| All times are GMT. The time now is 14:17. |
vBulletin® Version 3.8.8