UncheckyAds, makeHostsWindows.bat
authorTomasz Przybył <redacted>
Mon, 29 Aug 2016 13:57:08 +0000 (15:57 +0200)
committerTomasz Przybył <redacted>
Mon, 29 Aug 2016 13:57:08 +0000 (15:57 +0200)
* makeHostsWindows.bat BATCH file for Windows
* copy of Unchecky hosts rules for block advertisements in Windows
installers.

Reference:  https://github.com/StevenBlack/hosts/issues/166

data/UncheckyAds/hosts [new file with mode: 0644]
data/UncheckyAds/update.info [new file with mode: 0644]
makeHostsWindows.bat [new file with mode: 0644]
readme_template.md

diff --git a/data/UncheckyAds/hosts b/data/UncheckyAds/hosts
new file mode 100644 (file)
index 0000000..0339b48
--- /dev/null
@@ -0,0 +1,37 @@
+# unchecky_begin
+# These rules were added by the Unchecky program in order to block advertising software modules
+0.0.0.0 tracking.opencandy.com.s3.amazonaws.com
+0.0.0.0 media.opencandy.com
+0.0.0.0 cdn.opencandy.com
+0.0.0.0 tracking.opencandy.com
+0.0.0.0 api.opencandy.com
+0.0.0.0 api.recommendedsw.com
+0.0.0.0 installer.betterinstaller.com
+0.0.0.0 installer.filebulldog.com
+0.0.0.0 d3oxtn1x3b8d7i.cloudfront.net
+0.0.0.0 inno.bisrv.com
+0.0.0.0 nsis.bisrv.com
+0.0.0.0 cdn.file2desktop.com
+0.0.0.0 cdn.goateastcach.us
+0.0.0.0 cdn.guttastatdk.us
+0.0.0.0 cdn.inskinmedia.com
+0.0.0.0 cdn.insta.oibundles2.com
+0.0.0.0 cdn.insta.playbryte.com
+0.0.0.0 cdn.llogetfastcach.us
+0.0.0.0 cdn.montiera.com
+0.0.0.0 cdn.msdwnld.com
+0.0.0.0 cdn.mypcbackup.com
+0.0.0.0 cdn.ppdownload.com
+0.0.0.0 cdn.riceateastcach.us
+0.0.0.0 cdn.shyapotato.us
+0.0.0.0 cdn.solimba.com
+0.0.0.0 cdn.tuto4pc.com
+0.0.0.0 cdn.appround.biz
+0.0.0.0 cdn.bigspeedpro.com
+0.0.0.0 cdn.bispd.com
+0.0.0.0 cdn.bisrv.com
+0.0.0.0 cdn.cdndp.com
+0.0.0.0 cdn.download.sweetpacks.com
+0.0.0.0 cdn.dpdownload.com
+0.0.0.0 cdn.visualbee.net
+# unchecky_end
diff --git a/data/UncheckyAds/update.info b/data/UncheckyAds/update.info
new file mode 100644 (file)
index 0000000..5c5c146
--- /dev/null
@@ -0,0 +1 @@
+https://gist.githubusercontent.com/FadeMind/fd21947379d135ed064c7be48a2b9112/raw/078ca03a6224ecaff391dda6e6956bf45c95d66e/unchecky.ads.hosts
\ No newline at end of file
diff --git a/makeHostsWindows.bat b/makeHostsWindows.bat
new file mode 100644 (file)
index 0000000..317b968
--- /dev/null
@@ -0,0 +1,17 @@
+@ECHO OFF
+:UPDATES
+       ::These create various alternate hosts files by combining and adding the gambling, porn, and social media extensions.
+       updateHostsFile.py -a    -o alternates\gambling -e gambling
+       updateHostsFile.py -a -n -o alternates\porn -e porn
+       updateHostsFile.py -a -n -o alternates\social -e social
+       updateHostsFile.py -a -n -o alternates\gambling-porn -e gambling porn
+       updateHostsFile.py -a -n -o alternates\gambling-social -e gambling social
+       updateHostsFile.py -a -n -o alternates\porn-social -e porn social
+       updateHostsFile.py -a -n -o alternates\gambling-porn-social -e gambling porn social
+       updateHostsFile.py -a -n
+
+       ::Update the readmes.
+       updateReadme.py
+
+       GOTO END
+:END
index 20e0be12e7c39612d21cd4d817454522b6da80f0..c443d281ca6d7546fca36aad036986f91ad8c33e 100644 (file)
@@ -153,11 +153,14 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
 
 ### Windows
 
+|`makeHostsWindows.bat` BATCH file will create various alternate hosts files by combining and adding the gambling, porn, and social media extensions. This file REQUIRED installed Python 3.5.x environment in Windows System. Launch this file as normal user.|
+:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
 |Run `updateHostsWindows.bat` in Command Prompt in repository dir always after updating main hosts file for easy replacing hosts file in Windows and reload DNS cache.|
 :---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
 
-|WARNING: Don't run this BAT file directly from popup menu. You have been warned.|
-:---------------------------------------------------------------------------------
+|WARNING: Don't run these BAT files directly or from popup menu. You have been warned.|
+:--------------------------------------------------------------------------------------
 
 Open a Command Prompt in directory where are files from this repository:
 
@@ -169,11 +172,24 @@ Open a Command Prompt in directory where are files from this repository:
 **Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
 "Run as Administrator"
 
+**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
+"Run as Administrator"
+
 and run command:
 ```
 updateHostsWindows.bat
 ```
 
+|If you want using huge hosts file with merged [https://www.hosts-file.net/](hphosts) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
+:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+Open a Command Prompt with Administrator privileges and run once commands:
+
+```
+sc config "Dnscache" start= disabled
+sc stop "Dnscache"
+```
+
 ### Linux
 Open a Terminal and run with root privileges:
 
git clone https://git.99rst.org/PROJECT