From 0cf8659d2e63e4354c717f9af06c0cf0d3adafa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Przyby=C5=82?= Date: Wed, 15 Jun 2016 14:55:59 +0200 Subject: [PATCH 1/2] updateHostsWindows.bat: add file This script will create in first running backup of ORIGINAL/CURRENT hosts file in hosts.skel file if file does not exists. If hosts.skel file exists, then NEW copy with customized unified hosts file will be copied to proper path. Next DNS Cache will be refreshed. --- updateHostsWindows.bat | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 updateHostsWindows.bat diff --git a/updateHostsWindows.bat b/updateHostsWindows.bat new file mode 100644 index 000000000..2d23ebdcb --- /dev/null +++ b/updateHostsWindows.bat @@ -0,0 +1,14 @@ +:: This script will create in first running backup of ORIGINAL/CURRENT hosts file in hosts.skel file. +:: If hosts.skel file exists, then NEW copy with customized unified hosts file will be copied to proper path. +:: Next DNS Cache will be refreshed. +:: YOU NEED RUNNING THIS BAT FILE IN COMMAND LINE PROMPT WITH ADMINISTRATOR PRIVILIGES +@ECHO OFF +if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" ( + COPY %WINDIR%\System32\drivers\etc\hosts %WINDIR%\System32\drivers\etc\hosts.skel + GOTO :CLEARDNS +) +:CLEARDNS + COPY hosts %WINDIR%\System32\drivers\etc\ + ipconfig /flushdns + GOTO END +:END \ No newline at end of file From 07fcae78176f68c0de6984772e1ad54d2723006e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Przyby=C5=82?= Date: Sun, 19 Jun 2016 08:25:57 +0200 Subject: [PATCH 2/2] SpotifyAds: block ads in Spotify apps Source: https://github.com/Xeroday/Spotify-Ad-Blocker --- data/SpotifyAds/hosts | 11 +++++++++++ data/SpotifyAds/update.info | 1 + 2 files changed, 12 insertions(+) create mode 100644 data/SpotifyAds/hosts create mode 100644 data/SpotifyAds/update.info diff --git a/data/SpotifyAds/hosts b/data/SpotifyAds/hosts new file mode 100644 index 000000000..4fcc15de6 --- /dev/null +++ b/data/SpotifyAds/hosts @@ -0,0 +1,11 @@ + +# SPOTIFY ADS BEGIN # + +0.0.0.0 pubads.g.doubleclick.net +0.0.0.0 securepubads.g.doubleclick.net +0.0.0.0 www.googletagservices.com +0.0.0.0 gads.pubmatic.com +0.0.0.0 ads.pubmatic.com +0.0.0.0 spclient.wg.spotify.com + +# SPOTIFY ADS END # diff --git a/data/SpotifyAds/update.info b/data/SpotifyAds/update.info new file mode 100644 index 000000000..584d772fb --- /dev/null +++ b/data/SpotifyAds/update.info @@ -0,0 +1 @@ +https://gist.githubusercontent.com/FadeMind/9305a12b227b0f5a61d41596c2bd6ef6/raw/8960222e70445f05827d02e25ec46dd494aa5ed6/spotify.ads.hosts \ No newline at end of file