To block ads I have, probably, a thousand or so entries in my hosts file.
However it has come back to bite me, in as much, as I cannot load certain sites.
These are:
1. For example , and
2. again for example sake
Any way I can determine what I need to remove from my hosts file so that these sites will load?
If Australia is a democracy why, then, is voting compulsory?
"What has changed between the arrival of the First Fleet and today?"
"Wearing leg irons is now not required."
Look Here -> |
Guiseppe (01-11-21)
I really need something like:
ss2.zedo.com
If Australia is a democracy why, then, is voting compulsory?
"What has changed between the arrival of the First Fleet and today?"
"Wearing leg irons is now not required."
gcb@gallah:~$ host ss2.zedo.com
Host ss2.zedo.com not found: 3(NXDOMAIN)
Guiseppe (02-11-21)
If Australia is a democracy why, then, is voting compulsory?
"What has changed between the arrival of the First Fleet and today?"
"Wearing leg irons is now not required."
I would ask, why are you futzing with the hosts file? I get zero ads here through reliable means (browser plugin, pihole) and never touch the hosts file. I do recall dealing with /etc/hosts 'decades ago' (or the lmhosts file in windows), but I am talking more than 3 decades ago ; straight from the manpage ;
Historical notes
RFC 952 gave the original format for the host table, though it has
since changed.
Before the advent of DNS, the host table was the only way of resolving
hostnames on the fledgling Internet. Indeed, this file could be cre‐
ated from the official host data base maintained at the Network Infor‐
mation Control Center (NIC), though local changes were often required
to bring it up to date regarding unofficial aliases and/or unknown
hosts. The NIC no longer maintains the hosts.txt files, though looking
around at the time of writing (circa 2000), there are historical
hosts.txt files on the WWW. I just found three, from 92, 94, and 95.
I don't know about windows these days, but certainly for linux the hosts file is just a pointer to loopback ;
gcb@gallah:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 gallah
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
The bofh/sys-admin inside me says that if this is all gobbledegook to someone, that someone shouldn't be editing the hosts file. That's the way it is, without slight.
It's also fairly pointless -- hosts can change IP and more often than not it's not the host spawning ads but some other IP...for example the site you exampled above 'https://www.marketindex.com.au/asx/bhp/advanced-chart' --
gcb@gallah:~$ host marketindex.com.au
marketindex.com.au has address 172.66.40.163
marketindex.com.au has address 172.66.43.93
marketindex.com.au has IPv6 address 2606:4700:3108::ac42:28a3
marketindex.com.au has IPv6 address 2606:4700:3108::ac42:2b5d
One would need that much in the hosts file to block that site, but none of the ads you see are coming from that site -- so I can look at that site (any site), without ads, and without any need for me to touch the hosts file ; how? ; ublock origin / pihole =)
My advice is, return your hosts file to it's original formal, install ublock origin in your browser and install pihole (there's a windows version these days)
Just to see what pihole is about I watched most of . So:
1. My hosts file does everything shown at 10:15 onward regarding ad blocking on my PC.
2. I am not trying to block marketindex. What I am trying to do is remove, from my hosts file, whatever is preventing me loading
3. I am extremely happy, the above mentioned exceptions excluded, with how my hosts file works so see no need to go to extra lengths to achieve much the same thing. I should add that early in the vid it appears that all pihole is doing is a roundabout way of doing what my hosts file does.
Last edited by Guiseppe; 02-11-21 at 04:54 PM.
If Australia is a democracy why, then, is voting compulsory?
"What has changed between the arrival of the First Fleet and today?"
"Wearing leg irons is now not required."
1. wrong
2. how do I know that is wrong? Just because it loads fine here, without ads ;
Note: just checking the stats going to the site you're after (above)
3. No, you're not extremely happy -- if you were, you wouldn't be here asking this question =)
If you are so extremely happy with what you're doing, you must be very knowledgeable with doing what you're doing....so I'll leave this thread here;
The second last para is what you're suffering from ;^)
Bookmarks