Free Adblocker for Windows

Free Adblocker for Windows. (With simple change for linux too)

Copy the lines in a host_adblock.cmd

or download with curl.exe

Runs with xp – Windows 10

@ECHO OFF

:: ————EXTRA CODE TO CHANGE DIRECTORY————-
@echo %0 started from Directory: %~dp0
echo %0 %~dp0
cd %~dp0
:: ——————————————————-
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\HOSTS*.* ATTRIB +A -H -R -S %windir%\SYSTEM32\DRIVERS\ETC\HOSTS*.*>NUL
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\HOSTS.DPA DEL %windir%\SYSTEM32\DRIVERS\ETC\HOSTS.DPA>NUL
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\HOSTS REN %windir%\SYSTEM32\DRIVERS\ETC\HOSTS HOSTS.DPA>NUL
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\NUL COPY /Y HOSTS %windir%\SYSTEM32\DRIVERS\ETC>NUL

color 1F
echo   THE someonewhocares FILE was NOW UPDATED
echo.
echo.
echo. Previous version saved and renamed to HOSTS.DPA

curl  http://someonewhocares.org/hosts/hosts >%windir%\SYSTEM32\DRIVERS\ETC\hosts
rem call Block.bat

Instead of someonewhocares.org goes also every other side (but must be a text file.)

Download curl from here Download WITHOUT SSL for someonewhocares enough.

For own host entries use as last line

call Block.bat

sample entry

SET NEWLINE=^& echo.

FIND /C /I “fritz.box” %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^    192.168.0.1 fritz.box>>%WINDIR%\system32\drivers\etc\hosts

………..

 

Alles geschieht auf eigenes Risiko. Klar es wird keine Haftung und dergleichen Übernommen. Naja das übliche Gelaber halt.

Leave a Reply

Your email address will not be published. Required fields are marked *