How do I stop all entries using HOSTS file.

J

jw

I want to kill all those facebook ads and icons that appear on almost
every website. I added www.facebook.com to the Hosts file. Now, if I
try to go to www.facebook.com, I get an error message. However, if
I'm on a webite that has an ad from Facebook, such as
www.facebook.com/wikihow These still show up.

How do I make a UNIVERSAL entry in HOSTS that blocks ALL facebook
links and ads?

Thanks
 
T

Tester

Have you tried putting the following entries in your hosts file:

127.0.0.1 pl-pl.facebook.com
127.0.0.1 pt-br.facebook.com
127.0.0.1 en-gb.facebook.com
127.0.0.1 apps.facebook.com
127.0.0.1 developers.facebook.com
127.0.0.1 de-de.facebook.com
127.0.0.1 www.facebook.com


The reason is Facebook uses multiple servers to serve the entire world.
Apparently they have more than half a billion customers and so one
server won't do the job properly.

Please let us know if this worked.

Good luck
 
T

Tester

This list covers all their servers and sub-domains around the world that
are visible to the general public:

127.0.0.1 apps.facebook.com
127.0.0.1 de-de.facebook.com
127.0.0.1 developers.facebook.com
127.0.0.1 en-gb.facebook.com
127.0.0.1 es-la.facebook.com
127.0.0.1 facebook.com
127.0.0.1 id-id.facebook.com
127.0.0.1 it-it.facebook.com
127.0.0.1 ms-my.facebook.com
127.0.0.1 pl-pl.facebook.com
127.0.0.1 pt-br.facebook.com
127.0.0.1 tl-ph.facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 www.hs.facebook.com
127.0.0.1 www.thefacebook.com
127.0.0.1 zh-hk.facebook.com


hth
 
E

Etal

I want to kill all those facebook ads and icons that appear on
almost every website. I added www.facebook.com to the Hosts
file. Now, if I try to go to www.facebook.com, I get an error
message. However, if I'm on a webite that has an ad from
Facebook, such as www.facebook.com/wikihow These still show
up.

How do I make a UNIVERSAL entry in HOSTS that blocks ALL
facebook links and ads?

You made no reply to whether my suggestion[*1] to you in over in
'microsoft.public.win98.gen_discussion' helped at all.

So i repeat ...

.... i see that i have the following in my [hosts] file:

#
# For links to 3rd-party pesky social networking web-sites
#
127.0.0.1 www.addthis.com
127.0.0.1 s3.addthis.com
127.0.0.1 s5.addthis.com
127.0.0.1 s7.addthis.com
127.0.0.1 s9.addthis.com
#

Odd that i've only been annoyed by odd numbered servers (so far).
There are probably other dis-services that web-sites use for this
but test and see if adding this helps more generally then for
just the above example.


The 'above example'[*2] you gave in the other group were
different then the one you give here, but did it help at all or not?


Refs.:
[*1] <
[*2]
<http://www.therecord.com/living/art...nd-aspirin-best-bets-to-cure-a-hangover-study>
 
P

Paul

Tester said:
This list covers all their servers and sub-domains around the world that
are visible to the general public:

127.0.0.1 apps.facebook.com
127.0.0.1 de-de.facebook.com
127.0.0.1 developers.facebook.com
127.0.0.1 en-gb.facebook.com
127.0.0.1 es-la.facebook.com
127.0.0.1 facebook.com
127.0.0.1 id-id.facebook.com
127.0.0.1 it-it.facebook.com
127.0.0.1 ms-my.facebook.com
127.0.0.1 pl-pl.facebook.com
127.0.0.1 pt-br.facebook.com
127.0.0.1 tl-ph.facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 www.hs.facebook.com
127.0.0.1 www.thefacebook.com
127.0.0.1 zh-hk.facebook.com


hth

I used Wireshark, to find a few when surfing on my machine.
This is what I have in the hosts file right now.

127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 error.facebook.com
127.0.0.1 api-read.facebook.com

That's all I could see, the day I was looking. I don't
usually play whack-a-mole with advertisers, but for
facebook, I was willing to make an exception, as the
prevalent of the links to that site make them good
enough for tracking.

Paul
 
J

jw

This list covers all their servers and sub-domains around the world that
are visible to the general public:

127.0.0.1 apps.facebook.com
127.0.0.1 de-de.facebook.com
127.0.0.1 developers.facebook.com
127.0.0.1 en-gb.facebook.com
127.0.0.1 es-la.facebook.com
127.0.0.1 facebook.com
127.0.0.1 id-id.facebook.com
127.0.0.1 it-it.facebook.com
127.0.0.1 ms-my.facebook.com
127.0.0.1 pl-pl.facebook.com
127.0.0.1 pt-br.facebook.com
127.0.0.1 tl-ph.facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 www.hs.facebook.com
127.0.0.1 www.thefacebook.com
127.0.0.1 zh-hk.facebook.com


hth

Ok, I put all of these in my HOSTS file. It has stopped many of them

However, I still get these:
On this site...
http://chicago.cbslocal.com/2011/02/02/lake-shore-drive-a-disaster-area/

There is a facebook logo (link) near bottom of page.
www.facebook.com/cbschicago

Seems that any of those with the /whatever at the end is not being
blocked.

Can I use soemthing like this?
www.facebook.com/*.*
Or is there sonmething else to do?
 
P

Paul

Ok, I put all of these in my HOSTS file. It has stopped many of them

However, I still get these:
On this site...
http://chicago.cbslocal.com/2011/02/02/lake-shore-drive-a-disaster-area/

There is a facebook logo (link) near bottom of page.
www.facebook.com/cbschicago

Seems that any of those with the /whatever at the end is not being
blocked.

Can I use soemthing like this?
www.facebook.com/*.*
Or is there sonmething else to do?

Depending on your browser, you can also do View:page Source and have
a look through the code. See what references to Facebook are in there.

Paul
 
N

N. Miller

Ok, I put all of these in my HOSTS file. It has stopped many of them

However, I still get these:
On this site...
http://chicago.cbslocal.com/2011/02/02/lake-shore-drive-a-disaster-area/

There is a facebook logo (link) near bottom of page.
www.facebook.com/cbschicago

Seems that any of those with the /whatever at the end is not being
blocked.

Can I use soemthing like this?
www.facebook.com/*.*
Or is there sonmething else to do?

Using the "view source" facility of the Opera browser on the 'cbslocal.com'
site, I found this host name among the links:

| static.ak.connect.facebook.com

Wild card characters can't be used in a hosts file. You just have to look
for the hosts in the site code.
 
J

jw

Using the "view source" facility of the Opera browser on the 'cbslocal.com'
site, I found this host name among the links:

| static.ak.connect.facebook.com

Wild card characters can't be used in a hosts file. You just have to look
for the hosts in the site code.

--

I had a feeling that wildcards would not work. To Paul (prior reply),
the link was www.facebook.com/cbschicago when right clicking and
showing the properties for that link.

I;m not sure where you got "static.ak.connect.facebook.com", but I'll
add that to my HOSTS. It appears that there is no way to kill all
those FB icons on all pages, but the main thing is that I'm not
linking to FB. I can live with the icons as long as they dont get
activated (connected to FB).

Thanks
 
J

jw

You made no reply to whether my suggestion[*1] to you in over in
'microsoft.public.win98.gen_discussion' helped at all.

So i repeat ...

... i see that i have the following in my [hosts] file:

#
# For links to 3rd-party pesky social networking web-sites
#
127.0.0.1 www.addthis.com
127.0.0.1 s3.addthis.com
127.0.0.1 s5.addthis.com
127.0.0.1 s7.addthis.com
127.0.0.1 s9.addthis.com
#

Odd that i've only been annoyed by odd numbered servers (so far).
There are probably other dis-services that web-sites use for this
but test and see if adding this helps more generally then for
just the above example.

Sorry for not replying back in the other NG. Yes, I did add this and
it DID remove lots of those little "social networking" lines of links
that would pop open when moused over. Glad those irritations are
gone. It seems that "addthis.com" is where most or all of them were
coming from. This site provides them for not only facebook, but
twitter, and probably a hundred more whom most I never heard of.
These social networking sites are darn near becoming a virus. Seems
every website has those links. FB is the worst, twitter is next....
I dont want nothing to do with any of them.

In some ways, I think these social networking sites are going to ruin
the web. For example a local tv station used to have a click on link
on their website to upload local news articles and pictures, as well
as email links to the reporters. I used those links several times to
upload pictures of severe weather and once a large building fire.
This week the switched over to using facebook for this use, and
removed the links on their webpage. That's the last time I'll be
sending them anything since I refuse to have a FB account due to their
privacy invasions as well as most irritating method of constantly
reloading their page and telling me that I have a notification and
these notifications tell me something completely worthless like
"joeblow" just posted a photo. I was on FB for about 10 days,
absolutely hated it. Found out you cant even remove the account, but
can make it inactive. I never put any real info on the page except a
disposible email address. I made the page inactive FOREVER and trashed
the email address. I have no use for FB or any of those social
networking sites.
 
C

choro

Can we keep postings as short as possible, please?

Short and simple, and to the point. Verbosity is one of my vices too as
in my younger days I covered news for over 10 years turning out the
equivalent of a paper back every four weeks or so.

Now I appreciate brevity!
--
choro
*****

You made no reply to whether my suggestion[*1] to you in over in
'microsoft.public.win98.gen_discussion' helped at all.

So i repeat ...

... i see that i have the following in my [hosts] file:

#
# For links to 3rd-party pesky social networking web-sites
#
127.0.0.1 www.addthis.com
127.0.0.1 s3.addthis.com
127.0.0.1 s5.addthis.com
127.0.0.1 s7.addthis.com
127.0.0.1 s9.addthis.com
#

Odd that i've only been annoyed by odd numbered servers (so far).
There are probably other dis-services that web-sites use for this
but test and see if adding this helps more generally then for
just the above example.

Sorry for not replying back in the other NG. Yes, I did add this and
it DID remove lots of those little "social networking" lines of links
that would pop open when moused over. Glad those irritations are
gone. It seems that "addthis.com" is where most or all of them were
coming from. This site provides them for not only facebook, but
twitter, and probably a hundred more whom most I never heard of.
These social networking sites are darn near becoming a virus. Seems
every website has those links. FB is the worst, twitter is next....
I dont want nothing to do with any of them.

In some ways, I think these social networking sites are going to ruin
the web. For example a local tv station used to have a click on link
on their website to upload local news articles and pictures, as well
as email links to the reporters. I used those links several times to
upload pictures of severe weather and once a large building fire.
This week the switched over to using facebook for this use, and
removed the links on their webpage. That's the last time I'll be
sending them anything since I refuse to have a FB account due to their
privacy invasions as well as most irritating method of constantly
reloading their page and telling me that I have a notification and
these notifications tell me something completely worthless like
"joeblow" just posted a photo. I was on FB for about 10 days,
absolutely hated it. Found out you cant even remove the account, but
can make it inactive. I never put any real info on the page except a
disposible email address. I made the page inactive FOREVER and trashed
the email address. I have no use for FB or any of those social
networking sites.
 
M

MyNews

choro said:
Can we keep postings as short as possible, please?

Short and simple, and to the point. Verbosity is one of my vices too as in
my younger days I covered news for over 10 years turning out the
equivalent of a paper back every four weeks or so.

Now I appreciate brevity!
Mr. choro - peeple no care what you appreciate or what you do for 10
years. Thay can say what thay want.
 
C

choro

Mr. choro - peeple no care what you appreciate or what you do for 10
years. Thay can say what thay want.

Of course. But learn from the life experiences of a wise old man!

And do learn to spell 'people' correctly! ;-)

And it should also be "People DO NOT care..."

Though I DO appreciate your taking my advice and shortening your
sentences. But you don't do this by leaving the verbs out! ;-)
 
T

Tester

Ok, I put all of these in my HOSTS file. It has stopped many of them

However, I still get these:
On this site...
http://chicago.cbslocal.com/2011/02/02/lake-shore-drive-a-disaster-area/

There is a facebook logo (link) near bottom of page.
www.facebook.com/cbschicago

Seems that any of those with the /whatever at the end is not being
blocked.

Can I use soemthing like this?
www.facebook.com/*.*
Or is there sonmething else to do?

You don't have to worry about facebook links on somebody's website
because as soon as you click on the link, you will only get error
message. The image is not on Facebook website but on the server's of
website owner. You can't block it unless you also want to block the
whole of that particular website.

The entries I have given you will take care of everything about facebook
websites. Any other links or graphics will only give you error message
when you click on them.

hth
 
N

N. Miller

On Thu, 3 Feb 2011 12:26:42 -0800, "N. Miller"
I had a feeling that wildcards would not work. To Paul (prior reply),
the link was www.facebook.com/cbschicago when right clicking and
showing the properties for that link.

I;m not sure where you got "static.ak.connect.facebook.com", but I'll
add that to my HOSTS. It appears that there is no way to kill all
those FB icons on all pages, but the main thing is that I'm not
linking to FB. I can live with the icons as long as they dont get
activated (connected to FB).

As I said, its a function of Opera, to view the raw code of a web page. No
rendering, no images, just lines of code. The relevant section has a series
of script descriptors:

| <script type='text/javascript' src='http://s2.wp.com/wp-content/themes/...-comments/js/ajax.js?m=1286123475g&amp;ver=MU'></script>
| <script type='text/javascript' src='http://player.radio.com/player/javascript/launchPlayer.js?ver=MU'></script>
| <script type='text/javascript' src='http://s1.wp.com/wp-content/themes/vip/cbs-local/js/refresh.js?m=1295390642g&amp;ver=1.0.0'></script>
| <script type='text/javascript' src='http://s1.wp.com/wp-content/themes/...query.ad-gallery.js?m=1285954266g&amp;ver=1.7'></script>
| <script type='text/javascript' src='http://s0.wp.com/wp-includes/js/comment-reply.js?m=1234390798g&amp;ver=20090102'></script>
| <script type='text/javascript' src='http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php?ver=MU'></script>
| <script type='text/javascript' src='http://chicago.cbslocal.com/wp-content/themes/vip/plugins/faux-facebook-connect/fauxfb.js?ver=MU'></script>
| <script type='text/javascript' src='http://s1.wp.com/wp-content/themes/...ve/js/listen-live.js?m=1285954266g&amp;ver=MU'></script>
| <script type='text/javascript' src='http://s1.wp.com/wp-content/themes/...e_rss/js/page_rss.js?m=1285954266g&amp;ver=MU'></script>

I am not so good as to understand what is happening here, but the host name
is given after a "<src>" tag, meaning something in the script is going to
that host for some reason. Putting that host name in your hosts file sends
the script to [127.0.0.1]; unless you have some kind of web server running,
nothing at all can happen.

In Internet Explorer 8, you have to unhide your menu bar, then click on the
"View" menu tab, then click on the "Source" label of the drop down menu.
That will open a window with the source as text. The text is searchable.
 
E

Etal

Etal said:
You made no reply to whether my suggestion[*1] to you in
over in 'microsoft.public.win98.gen_discussion' helped at
all.

So i repeat ...

... i see that i have the following in my [hosts] file:

#
# For links to 3rd-party pesky social networking web-sites
#
127.0.0.1 www.addthis.com
127.0.0.1 s3.addthis.com
127.0.0.1 s5.addthis.com
127.0.0.1 s7.addthis.com
127.0.0.1 s9.addthis.com
#

Odd that i've only been annoyed by odd numbered servers (so
far). There are probably other dis-services that web-sites
use for this but test and see if adding this helps more
generally then for just the above example.

Sorry for not replying back in the other NG. Yes, I did add
this and it DID remove lots of those little "social
networking" lines of links that would pop open when moused
over. Glad those irritations are gone.

And i'm glad to hear that it helped some. It's an /neverending/
process to stop this type of activity, one server at a time. Old
(¿ 1.x ?) versions of Firefox had a UI setting to disallow all
3rd party images that was useful for killing web-bugs.
Unfortunately instead of also giving us the possibility to stop
3rd party scripts 'en mass', the setting for dis/allowing 3rd
party images was taken out of the options panel instead.

It seems that
"addthis.com" is where most or all of them were coming from.
This site provides them for not only facebook, but twitter,
and probably a hundred more whom most I never heard of. These
social networking sites are darn near becoming a virus. Seems
every website has those links. FB is the worst, twitter is
next.... I dont want nothing to do with any of them.

My main reason to stop these 3rd party generated mouseover-popups
has been because it is visually and functionally annoying on the
web-pages i'm visiting. But for some servers that gets called
from so many different sites you visit, like for example the
'addthis.com' ones, i also more or less echo what Paul expressed;
a web-bug is a tracking-cookie no matter its size or how obvious
and in your face it is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top