Create a gist now

Instantly share code, notes, and snippets.

@eyecatchup /hosts
Last active Jun 18, 2018

Embed
What would you like to do?
Disable Skype ads: 1.) Add hosts to your hosts file 2.) Flush DNS resolver cache (ipconfig /flushdns)
# Block Skype ads
127.0.0.1 *.msads.net
127.0.0.1 *.msecn.net
127.0.0.1 *.rad.msn.com
127.0.0.1 a.ads2.msads.net
127.0.0.1 ac3.msn.com
127.0.0.1 ad.doubleclick.net
127.0.0.1 adnexus.net
127.0.0.1 adnxs.com
127.0.0.1 ads1.msn.com
127.0.0.1 ads2.msads.net
127.0.0.1 aka-cdn-ns.adtech.de
# Keep "apps.skype.com" if you want to see Skype Home (prepend # at line below)!
127.0.0.1 apps.skype.com
127.0.0.1 b.ads2.msads.net
127.0.0.1 bs.serving-sys.com
127.0.0.1 cdn.atdmt.com
127.0.0.1 cds26.ams9.msecn.net
127.0.0.1 db3aqu.atdmt.com
127.0.0.1 ec.atdmt.com
127.0.0.1 flex.msn.com
127.0.0.1 g.msn.com
127.0.0.1 live.rads.msn.com
127.0.0.1 msntest.serving-sys.com
127.0.0.1 rad.msn.com
127.0.0.1 sO.2mdn.net
127.0.0.1 secure.flashtalking.com
127.0.0.1 static.2mdn.net
127.0.0.1 static.2mdn.net
# PRO-TIP: Removing the adds does NOT remove the add placeholder side bar(s)!
# This can be removed by going to: %appdata%/skype/YOUR_USER_NAME/config.xml
# and set all Advert-related values to 0:
#
# <AdvertEastRailsEnabled>0</AdvertEastRailsEnabled>
# <AdvertLargeEastRailCutoff>0</AdvertLargeEastRailCutoff>
# <AdvertNorthRailCutoff>0</AdvertNorthRailCutoff>
# <AdvertPlaceholder>0</AdvertPlaceholder>
# <AdvertSmallEastRailCutoff>0</AdvertSmallEastRailCutoff>
@midoalbalwi

This comment has been minimized.

Show comment
Hide comment
@d-kr

This comment has been minimized.

Show comment
Hide comment
@d-kr

d-kr Dec 11, 2015

I'm not sure (please correct me if I'm wrong), but correctly setting the ip adress to 0.0.0.0 instead of 127.0.0.1 will prevent a connection even to localhost. At least on windows. On linux that ip stands for "ask anyone the web".

d-kr commented Dec 11, 2015

I'm not sure (please correct me if I'm wrong), but correctly setting the ip adress to 0.0.0.0 instead of 127.0.0.1 will prevent a connection even to localhost. At least on windows. On linux that ip stands for "ask anyone the web".

@oliverhausler

This comment has been minimized.

Show comment
Hide comment
@oliverhausler

oliverhausler Feb 2, 2016

@d-kr It depends on the context, not the OS. 0.0.0.0 is an invalid IP address, but in the context of routing 0.0.0.0 means any network. So I would guess 0.0.0.0 would probably route to any interface, including the external ones. So it won't work. Haven't tested this, though.

@d-kr It depends on the context, not the OS. 0.0.0.0 is an invalid IP address, but in the context of routing 0.0.0.0 means any network. So I would guess 0.0.0.0 would probably route to any interface, including the external ones. So it won't work. Haven't tested this, though.

@dada84

This comment has been minimized.

Show comment
Hide comment
@dada84

dada84 Feb 13, 2016

"apps.skype.com" should not be blocked as this host provides the Skype Home. I unblocked it and I haven't seen any ad so far.

dada84 commented Feb 13, 2016

"apps.skype.com" should not be blocked as this host provides the Skype Home. I unblocked it and I haven't seen any ad so far.

@LyraAidan

This comment has been minimized.

Show comment
Hide comment
@LyraAidan

LyraAidan Mar 1, 2016

This no longer works as of today - I'm getting ads with all of these host edits. Did MS add new ad sources?

This no longer works as of today - I'm getting ads with all of these host edits. Did MS add new ad sources?

@iceteabottle

This comment has been minimized.

Show comment
Hide comment
@iceteabottle

iceteabottle Mar 2, 2016

Just block "apps.skype.com". I don't need Skype Home.

Just block "apps.skype.com". I don't need Skype Home.

@dada84

This comment has been minimized.

Show comment
Hide comment
@dada84

dada84 Mar 27, 2016

Blocking apps.skype.com seems to block every ads. The problem is that this domain also provides the Skype Home. I'm going to investigate in order to find new ad domains. But for the moment, we'll either have to face the ads or to remove the Skype Home.
EDIT: after like an hour of investigation, I found out that AdNexus was using many subdomains, and I also found out that wildcards such as * do not work in hosts files.
There is nothing more we can do. Either find a software that allows wildcards (eg blacklist *.adnexus.net), or use PeerBlock with the "Ads" subscription list.

dada84 commented Mar 27, 2016

Blocking apps.skype.com seems to block every ads. The problem is that this domain also provides the Skype Home. I'm going to investigate in order to find new ad domains. But for the moment, we'll either have to face the ads or to remove the Skype Home.
EDIT: after like an hour of investigation, I found out that AdNexus was using many subdomains, and I also found out that wildcards such as * do not work in hosts files.
There is nothing more we can do. Either find a software that allows wildcards (eg blacklist *.adnexus.net), or use PeerBlock with the "Ads" subscription list.

@czerwinski76

This comment has been minimized.

Show comment
Hide comment
@czerwinski76

czerwinski76 May 19, 2016

Keep "apps.skype.com" if you want to see Skype Home !
This line is useless. Without, Skype is ad-free !!!

Thank you @eyecatchup !
 

czerwinski76 commented May 19, 2016

Keep "apps.skype.com" if you want to see Skype Home !
This line is useless. Without, Skype is ad-free !!!

Thank you @eyecatchup !
 

@ADisgustingPerson

This comment has been minimized.

Show comment
Hide comment
@ADisgustingPerson

ADisgustingPerson Oct 10, 2016

Thank you! It worked. And cz*76, thx for the tip.

Thank you! It worked. And cz*76, thx for the tip.

@joielechong

This comment has been minimized.

Show comment
Hide comment
@gucu112

This comment has been minimized.

Show comment
Hide comment
@gucu112

gucu112 Sep 27, 2017

👍 for "apps.skype.com"

gucu112 commented Sep 27, 2017

👍 for "apps.skype.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment