Instead of editing the hosts file with individual items,the easeyer way is to 
replace the existing hosts file.
These replacement hosts files can be foun on the net in which new objectional 
ip addresses are added as discovered.
I first found this method to avoid the irking youtube ads.  It has been years 
now since         I have encounterered an ad anywhere.

Here is one source which is constantly updated:

http://winhelp2002.mvps.org/hosts.txt

Download that text hosts.txt file renaming it simply hosts.
In the root folder etc rename the existing hosts file; in case you want to go 
back to it later.
Place the new host file in the etc folder.  When next you restart it will be 
loaded and ads will disappear.

On Sat, 4 Apr 2020, 'Janina Sajka' via MacVisionaries wrote:

> Dan:
>
> You didn't explain the rest of it. Let me try for those who don't know
> what Dan is talking about.
>
> There's a simple ASCII text file on the Mac, and pretty much on every
> other OS that supports Internet access at /etc/hosts.
>
> This is the oldest, the very first implementation of how to find other
> machines on the Internet. In the very early days of Internet
> development, the small community of people using arpanet would share
> this file among themselves. It's used to tell the machine where to find
> another machine, like when you want to find google.com or apple.com,
> what it's Internet address is.
>
> Well, understandably this became unmaintainable even quithe early on, so
> the domain name system (DNS) was invented. DNS is a simple lookup table,
> basically speaking, that's billions and billions of rows long. That's
> perhaps not quite how it works in fact today, but the analogy holds. All
> it does is associate names like apple.com with an Internet address. Yes,
> today it's more than two addresses at least for many hosts because a
> host can have multiple addresses, and because we have to accomodate
> IPv6, but I think the concept provides an accurate picture of what's
> going on.
>
> DNS is a lookup thingie. Have the name of an Internet host like
> apple.com? DNS will supply you the Internet address expressed in
> structured numbers that a computer can actually use to connect you.
>
> Have one of those structured numerical addresses and want to know what
> host belongs to that address? DNS can answer that query.
>
> So, now that DNS, and it's predescor /etc/hosts is explained, what Dan
> is suggesting is to put the offending machine names in that file, one
> per line.
>
> Then, the magic part ---- You "resolve" each to localhost. Since DNS
> looks in /etc/hosts first, for historic reasons as explained above,
> it'll find it's answer and fail to deliver the ad, because it was told
> that the machine was your local machine.
>
> Example:
>
> bad.host 127.0.0.1
> downright.evil.host 127.0.0.1
>
> It's rather clunky to maintain this approach, but it is by far the most
> effective!
>
> Best,
>
> Janina
>
> dan d. writes:
> >
> > Even better is to replace or edit the "hosts" file on the mac.
> > This is used by modern operating systems for connecting to the internet.  
> > It will block sites also including ads and other undesirable urls.
> >
> > A google for "os10 hosts" will get many results.
> >
> > On Thu, 2 Apr 2020, David The Computer Guy wrote:
> >
> > > Ever heard of the application/extension called ad block+? That is what I 
> > > use on my system including Safari.
> > >
> > > Sent from David The Computer Guy
> > > 707 759 7586
> > >
> > > > On Apr 2, 2020, at 11:51 AM, Anders Holmberg <and...@pipkrokodil.se> 
> > > > wrote:
> > > >
> > > > ???Hi!
> > > > There isn???t but you could use adblockers for safari.
> > > > /A
> > > >
> > > >> 2 apr. 2020 kl. 20:05 skrev Jessica Moss <junglebookfa...@gmail.com>:
> > > >>
> > > >> Is this available for IOS as well?  That???s actually where I see the 
> > > >> worst of it, due to these ads constantly refreshing, and as it???s 
> > > >> loading, it disrupts VoiceOver from speaking, but the sound for the ad 
> > > >> is muted, so I just happened to have found out by accident one morning 
> > > >> that an ad was loading on a recipe site I was trying to view, 
> > > >> VoiceOver said ???ad loading??? then VoiceOver went crazy until the ad 
> > > >> was finished.
> > > >>
> > > >>> On Apr 2, 2020, at 12:30 PM, Anders Holmberg <and...@pipkrokodil.se> 
> > > >>> wrote:
> > > >>>
> > > >>> Hi!
> > > >>> There???s a setting to stop live regions to update in VoiceOver 
> > > >>> utility in the web tab.
> > > >>> /A
> > > >>>
> > > >>>> 1 apr. 2020 kl. 19:49 skrev Brad Snyder <wb...@swbell.net>:
> > > >>>>
> > > >>>> Just realized you may be using an iPad.
> > > >>>> To invoke Reader View on and iPad or other iOS device, locate the 
> > > >>>> Format Options button, somewhere along the top of the display, and 
> > > >>>> double tap and hold.  This should invoke Reader View for the current 
> > > >>>> webpage.
> > > >>>>
> > > >>>> Sorry if my instructions are vague.  I not only don???t use my iPad 
> > > >>>> everyday, but I have not made the upgrade to iPadOS on my iPad Pro.
> > > >>>>
> > > >>>> HTH
> > > >>>>
> > > >>>> - Brad -
> > > >>>>
> > > >>>>
> > > >>>> On Apr 1, 2020, at 12:42, Brad Snyder <wb...@swbell.net> wrote:
> > > >>>>
> > > >>>> Try invoking Reader View, using CMD + SHIFT + R.
> > > >>>> This may not work on all websites, but it is worth a try to see if 
> > > >>>> it will work on this one.
> > > >>>>
> > > >>>> HTH
> > > >>>>
> > > >>>> - Brad -
> > > >>>>
> > > >>>>
> > > >>>> On Apr 1, 2020, at 12:18, Traci Duncan <our4p...@gmail.com> wrote:
> > > >>>>
> > > >>>> Hello all,
> > > >>>>
> > > >>>> I want to read this article from Macworld, but Voiceover's focus 
> > > >>>> keeps getting dragged away by the Relentless ads.
> > > >>>>
> > > >>>> Is there something I can do?
> > > >>>>
> > > >>>> https://www.macworld.com/article/2018990/mac-buying-guide.html
> > > >>>>
> > > >>>> Thanks,
> > > >>>> Traci
> > > >>>>
> > > >>>>
> > > >>>> Sent from my iPad
> > > >>>>
> > > >>>> --
> > > >>>> The following information is important for all members of the Mac 
> > > >>>> Visionaries list.
> > > >>>>
> > > >>>> If you have any questions or concerns about the running of this 
> > > >>>> list, or if you feel that a member's post is inappropriate, please 
> > > >>>> contact the owners or moderators directly rather than posting on the 
> > > >>>> list itself.
> > > >>>>
> > > >>>> Your Mac Visionaries list moderator is Mark Taylor. You can reach 
> > > >>>> mark at: mk...@ucla.edu and your owner is Cara Quinn - you can reach 
> > > >>>> Cara at caraqu...@caraquinn.com
> > > >>>>
> > > >>>> The archives for this list can be searched at:
> > > >>>> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > > >>>> ---
> > > >>>> You received this message because you are subscribed to the Google 
> > > >>>> Groups "MacVisionaries" group.
> > > >>>> To unsubscribe from this group and stop receiving emails from it, 
> > > >>>> send an email to macvisionaries+unsubscr...@googlegroups.com.
> > > >>>> To view this discussion on the web visit 
> > > >>>> https://groups.google.com/d/msgid/macvisionaries/D629D697-D471-47B1-A31F-E96C3E371233%40gmail.com.
> > > >>>>
> > > >>>>
> > > >>>> --
> > > >>>> The following information is important for all members of the Mac 
> > > >>>> Visionaries list.
> > > >>>>
> > > >>>> If you have any questions or concerns about the running of this 
> > > >>>> list, or if you feel that a member's post is inappropriate, please 
> > > >>>> contact the owners or moderators directly rather than posting on the 
> > > >>>> list itself.
> > > >>>>
> > > >>>> Your Mac Visionaries list moderator is Mark Taylor. You can reach 
> > > >>>> mark at: mk...@ucla.edu and your owner is Cara Quinn - you can reach 
> > > >>>> Cara at caraqu...@caraquinn.com
> > > >>>>
> > > >>>> The archives for this list can be searched at:
> > > >>>> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > > >>>> ---
> > > >>>> You received this message because you are subscribed to the Google 
> > > >>>> Groups "MacVisionaries" group.
> > > >>>> To unsubscribe from this group and stop receiving emails from it, 
> > > >>>> send an email to macvisionaries+unsubscr...@googlegroups.com.
> > > >>>> To view this discussion on the web visit 
> > > >>>> https://groups.google.com/d/msgid/macvisionaries/60263BA7-33A3-422D-9502-FAF0BAB3401E%40swbell.net.
> > > >>>>
> > > >>>>
> > > >>>> --
> > > >>>> The following information is important for all members of the Mac 
> > > >>>> Visionaries list.
> > > >>>>
> > > >>>> If you have any questions or concerns about the running of this 
> > > >>>> list, or if you feel that a member's post is inappropriate, please 
> > > >>>> contact the owners or moderators directly rather than posting on the 
> > > >>>> list itself.
> > > >>>>
> > > >>>> Your Mac Visionaries list moderator is Mark Taylor. You can reach 
> > > >>>> mark at: mk...@ucla.edu and your owner is Cara Quinn - you can reach 
> > > >>>> Cara at caraqu...@caraquinn.com
> > > >>>>
> > > >>>> The archives for this list can be searched at:
> > > >>>> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > > >>>> ---
> > > >>>> You received this message because you are subscribed to the Google 
> > > >>>> Groups "MacVisionaries" group.
> > > >>>> To unsubscribe from this group and stop receiving emails from it, 
> > > >>>> send an email to macvisionaries+unsubscr...@googlegroups.com.
> > > >>>> To view this discussion on the web visit 
> > > >>>> https://groups.google.com/d/msgid/macvisionaries/1F48721E-BF0B-4B7B-BFC0-D200E60C15CE%40swbell.net.
> > > >>>
> > > >>>
> > > >>> --
> > > >>> The following information is important for all members of the Mac 
> > > >>> Visionaries list.
> > > >>>
> > > >>> If you have any questions or concerns about the running of this list, 
> > > >>> or if you feel that a member's post is inappropriate, please contact 
> > > >>> the owners or moderators directly rather than posting on the list 
> > > >>> itself.
> > > >>>
> > > >>> Your Mac Visionaries list moderator is Mark Taylor. You can reach 
> > > >>> mark at: mk...@ucla.edu and your owner is Cara Quinn - you can reach 
> > > >>> Cara at caraqu...@caraquinn.com
> > > >>>
> > > >>> The archives for this list can be searched at:
> > > >>> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > > >>> ---
> > > >>> You received this message because you are subscribed to the Google 
> > > >>> Groups "MacVisionaries" group.
> > > >>> To unsubscribe from this group and stop receiving emails from it, 
> > > >>> send an email to macvisionaries+unsubscr...@googlegroups.com.
> > > >>> To view this discussion on the web visit 
> > > >>> https://groups.google.com/d/msgid/macvisionaries/B4D70C0A-913A-4369-9A0E-290AEA3B4604%40pipkrokodil.se.
> > > >>
> > > >>
> > > >> --
> > > >> The following information is important for all members of the Mac 
> > > >> Visionaries list.
> > > >>
> > > >> If you have any questions or concerns about the running of this list, 
> > > >> or if you feel that a member's post is inappropriate, please contact 
> > > >> the owners or moderators directly rather than posting on the list 
> > > >> itself.
> > > >>
> > > >> Your Mac Visionaries list moderator is Mark Taylor. You can reach mark 
> > > >> at: mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara 
> > > >> at caraqu...@caraquinn.com
> > > >>
> > > >> The archives for this list can be searched at:
> > > >> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > > >> ---
> > > >> You received this message because you are subscribed to the Google 
> > > >> Groups "MacVisionaries" group.
> > > >> To unsubscribe from this group and stop receiving emails from it, send 
> > > >> an email to macvisionaries+unsubscr...@googlegroups.com.
> > > >> To view this discussion on the web visit 
> > > >> https://groups.google.com/d/msgid/macvisionaries/9618BAE3-9E21-4C1E-B152-280306758887%40gmail.com.
> > > >
> > > > --
> > > > The following information is important for all members of the Mac 
> > > > Visionaries list.
> > > >
> > > > If you have any questions or concerns about the running of this list, 
> > > > or if you feel that a member's post is inappropriate, please contact 
> > > > the owners or moderators directly rather than posting on the list 
> > > > itself.
> > > >
> > > > Your Mac Visionaries list moderator is Mark Taylor. You can reach mark 
> > > > at: mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at 
> > > > caraqu...@caraquinn.com
> > > >
> > > > The archives for this list can be searched at:
> > > > http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > > > ---
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "MacVisionaries" group.
> > > > To unsubscribe from this group and stop receiving emails from it, send 
> > > > an email to macvisionaries+unsubscr...@googlegroups.com.
> > > > To view this discussion on the web visit 
> > > > https://groups.google.com/d/msgid/macvisionaries/8C1754C8-4102-47BD-894F-AE68C974959E%40pipkrokodil.se.
> > >
> > >
> >
> > --
> > XB
> >
> > --
> > The following information is important for all members of the Mac 
> > Visionaries list.
> >
> > If you have any questions or concerns about the running of this list, or if 
> > you feel that a member's post is inappropriate, please contact the owners 
> > or moderators directly rather than posting on the list itself.
> >
> > Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark at: 
> >  mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at 
> > caraqu...@caraquinn.com
> >
> > The archives for this list can be searched at:
> > http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > ---
> > You received this message because you are subscribed to the Google Groups 
> > "MacVisionaries" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to macvisionaries+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/macvisionaries/alpine.OSX.2.22.394.2004031050420.6058%40dans-mac-mini.home.
>
>

-- 
XB

-- 
The following information is important for all members of the Mac Visionaries 
list.

If you have any questions or concerns about the running of this list, or if you 
feel that a member's post is inappropriate, please contact the owners or 
moderators directly rather than posting on the list itself.

Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark at:  
mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at 
caraqu...@caraquinn.com

The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
--- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/macvisionaries/alpine.OSX.2.22.394.2004041140350.1315%40dans-mac-mini.home.

Reply via email to