Results 1 to 9 of 9

Thread: Access sites - host file help

  1. #1
    Senior Member
    Guiseppe's Avatar
    Join Date
    May 2010
    Posts
    1,604
    Thanks
    1,057
    Thanked 413 Times in 279 Posts
    Rep Power
    366
    Reputation
    7224

    Default Access sites - host file help

    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 ->
  • #2
    Senior Member
    fandtm666's Avatar
    Join Date
    Jan 2008
    Posts
    5,502
    Thanks
    244
    Thanked 990 Times in 465 Posts
    Rep Power
    1189
    Reputation
    40447

    Default

    Quote Originally Posted by Guiseppe View Post
    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?
    1 = ip 151.101.12.193
    2 = ip 172.66.40.163

    remove those in the host file

  • The Following User Says Thank You to fandtm666 For This Useful Post:

    Guiseppe (01-11-21)

  • #3
    Senior Member
    Guiseppe's Avatar
    Join Date
    May 2010
    Posts
    1,604
    Thanks
    1,057
    Thanked 413 Times in 279 Posts
    Rep Power
    366
    Reputation
    7224

    Default

    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."

  • #4
    Premium Member
    wotnot's Avatar
    Join Date
    Nov 2019
    Location
    Scenic Rim, SE Qld
    Posts
    3,236
    Thanks
    1,462
    Thanked 2,934 Times in 1,510 Posts
    Rep Power
    1334
    Reputation
    58690

    Default

    gcb@gallah:~$ host ss2.zedo.com
    Host ss2.zedo.com not found: 3(NXDOMAIN)

  • The Following User Says Thank You to wotnot For This Useful Post:

    Guiseppe (02-11-21)

  • #5
    Senior Member
    Guiseppe's Avatar
    Join Date
    May 2010
    Posts
    1,604
    Thanks
    1,057
    Thanked 413 Times in 279 Posts
    Rep Power
    366
    Reputation
    7224

    Default

    Quote Originally Posted by Guiseppe View Post
    I really need something like:

    ss2.zedo.com
    This is just an example of the style of entry in my hosts file - it, the file, does not have entries like that posted by fandtm666.
    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."

  • #6
    Premium Member
    wotnot's Avatar
    Join Date
    Nov 2019
    Location
    Scenic Rim, SE Qld
    Posts
    3,236
    Thanks
    1,462
    Thanked 2,934 Times in 1,510 Posts
    Rep Power
    1334
    Reputation
    58690

    Default

    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)

  • #7
    Senior Member
    Guiseppe's Avatar
    Join Date
    May 2010
    Posts
    1,604
    Thanks
    1,057
    Thanked 413 Times in 279 Posts
    Rep Power
    366
    Reputation
    7224

    Default

    Quote Originally Posted by wotnot View Post
    1. I would ask, why are you futzing with the hosts file? .

    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

    2. 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 =)

    3. 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."

  • #8
    Premium Member
    wotnot's Avatar
    Join Date
    Nov 2019
    Location
    Scenic Rim, SE Qld
    Posts
    3,236
    Thanks
    1,462
    Thanked 2,934 Times in 1,510 Posts
    Rep Power
    1334
    Reputation
    58690

    Default

    Quote Originally Posted by Guiseppe View Post

    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.

    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 ;^)

  • #9
    Senior Member
    Guiseppe's Avatar
    Join Date
    May 2010
    Posts
    1,604
    Thanks
    1,057
    Thanked 413 Times in 279 Posts
    Rep Power
    366
    Reputation
    7224

    Default

    Quote Originally Posted by wotnot View Post
    ....so I'll leave this thread here;
    Thank you.
    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."

  • Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •