Using a Hosts File To Make The Internet Not Suck As Much
31–40 of 104 posts
Re: Using a Hosts File To Make The Internet Not Suck As Much
#32I tried one of these before, but crap like interstitial ad pages on news sites being hosted on some of these advertising sites made my browsing experience occasionally more annoying with the hosts entries.
Re: Using a Hosts File To Make The Internet Not Suck As Much
#33Earlier quoted context omitted.
What's the concern? It's pretty easy to see all entries point to 127.0.0.1.
You've just illustrated his point because not all entries do point to loopback.
~/tmp% grep -v "^[[:space:]]*#" fred.txt | grep -v "^[[:space:]]*$" | grep -v 127.0.0.1
books
guestbook
hosts
text file
rss feed
0.0.0.0
0 text file
old macs
0 old macs
math links
origami
photos
polls
siteoftheday
home
Hosted by:
theorem.ca
how to make the internet not suck (as much)
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
Fri Feb 22 08:05:36 2013top
~/tmp%
And I just realised now that the junk at the top of the output comes from me doing a Select All on the web page to highlight everything first, and it picked up the headers! Ooops. So there's in fact 3 non-comment lines that don't refer to localhost.Re: Using a Hosts File To Make The Internet Not Suck As Much
#34I see a load of porn sites. Just how does this Make The Internet Not Suck? (damn it's even more annoying to write incorrect casing than read it.) I thought this was going to block the fifty "Share this! Email this!" buttons on websites or something... If you don't visit porn websites, you won't visit these domains anyway; what's the point in blocking them in a huge hosts file?
And the majority of host names there are for tracking and ad sites.
Re: Using a Hosts File To Make The Internet Not Suck As Much
#35Or run your own caching recursive DNS server, and have it cache entries for as long as possible. Google DNS, Level 3 DNS can't shake a stick at my local cache, which is off course to be expected.
Re: Using a Hosts File To Make The Internet Not Suck As Much
#36Just something to think about when using massive hosts files.
Re: Using a Hosts File To Make The Internet Not Suck As Much
#37Re: Using a Hosts File To Make The Internet Not Suck As Much
#38I see a load of porn sites. Just how does this Make The Internet Not Suck? (damn it's even more annoying to write incorrect casing than read it.) I thought this was going to block the fifty "Share this! Email this!" buttons on websites or something... If you don't visit porn websites, you won't visit these domains anyway; what's the point in blocking them in a huge hosts file?
And the majority of host names below them are for tracking and ad sites.
Re: Using a Hosts File To Make The Internet Not Suck As Much
#39Re: Using a Hosts File To Make The Internet Not Suck As Much
#40Earlier quoted context omitted.
What's the concern? It's pretty easy to see all entries point to 127.0.0.1.
You've just illustrated his point because not all entries do point to loopback.
[~]$ cat hosts_example.txt | grep -v '#' | awk '{print $1}'| sort | uniq -c
56
1 ::1
9674 127.0.0.1
1 255.255.255.255
1 fe80::1%lo0