Savell Martin
Regular Contributor
The empty hosts.blocked file suggests the whitelist.txt file has an empty line. It's matching and removing every blocked site.
Wow it may do, it was created with vi, and it looks empty, but how can I make sure there are no lines?
I did 'dd' and deleted any lines if there were (I couldn't see any).
I did change the wget and got this:
Code:
services-start update-hosts.sh
admin@RT-AC88U-89C0:/jffs/scripts# ./update-hosts.sh
--2016-01-15 23:21:41-- http://winhelp2002.mvps.org/hosts.txt
Resolving winhelp2002.mvps.org... 216.155.126.40
Connecting to winhelp2002.mvps.org|216.155.126.40|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 508717 (497K) [text/plain]
Saving to: 'STDOUT'
- 100%[==================>] 496.79K 445KB/s in 1.1s
2016-01-15 23:21:42 (445 KB/s) - written to stdout [508717/508717]
--2016-01-15 23:21:42-- http://someonewhocares.org/hosts/zero/hosts
Resolving someonewhocares.org... 209.97.222.140
Connecting to someonewhocares.org|209.97.222.140|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'STDOUT'
- [ <=> ] 340.71K 398KB/s in 0.9s
2016-01-15 23:21:43 (398 KB/s) - written to stdout [348890]
--2016-01-15 23:21:43-- http://pgl.yoyo.org/adservers/serverlist.php?hostfo rmat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mi metype=plaintext&useip=0.0.0.0
Resolving pgl.yoyo.org... 213.230.210.230
Connecting to pgl.yoyo.org|213.230.210.230|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'STDOUT'
- [ <=> ] 58.73K --.-KB/s in 0.03s
2016-01-15 23:21:43 (2.29 MB/s) - written to stdout [60135]
FINISHED --2016-01-15 23:21:43--
Total wall clock time: 2.8s
Downloaded: 3 files, 896K in 2.0s (448 KB/s)
--2016-01-15 23:21:44-- http://www.malwaredomainlist.com/hostslist/hosts.tx t
Resolving www.malwaredomainlist.com... 143.215.130.61
Connecting to www.malwaredomainlist.com|143.215.130.61|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48878 (48K) [text/plain]
Saving to: 'STDOUT'
- 100%[==================>] 47.73K 167KB/s in 0.3s
2016-01-15 23:21:44 (167 KB/s) - written to stdout [48878/48878]
--2016-01-15 23:21:44-- http://hosts-file.net/ad_servers.txt
Resolving hosts-file.net... 107.22.171.143
Connecting to hosts-file.net|107.22.171.143|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1795072 (1.7M) [text/plain]
Saving to: 'STDOUT'
- 100%[==========================================================================================================================================>] 1.71M 39.0KB/s in 35s
2016-01-15 23:22:20 (49.7 KB/s) - written to stdout [1795072/1795072]
FINISHED --2016-01-15 23:22:20--
Total wall clock time: 36s
Downloaded: 2 files, 1.8M in 36s (50.7 KB/s)
Done.
admin@RT-AC88U-89C0:/jffs/scripts#
But after I look in the host.blocked file with vi and its still empty.
How can I create an empty whitelist/blacklist if that is the issue?
EDIT:
Ha you were 100% correct about the blank line.
I added in www.google.com to the top line re-ran the .sh scrip and boom host.blocked if full...
Last edited: