mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-30 06:14:57 +01:00
Merge pull request #142 from FadeMind/master
updateHostsWindows.bat: add file
This commit is contained in:
@@ -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 #
|
||||
@@ -0,0 +1 @@
|
||||
https://gist.githubusercontent.com/FadeMind/9305a12b227b0f5a61d41596c2bd6ef6/raw/8960222e70445f05827d02e25ec46dd494aa5ed6/spotify.ads.hosts
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user