Easeus - Hosts Blocker.bat !!exclusive!!

Notni zapisi za harmoniko, vadbeni videoposnetki in spremljevalne skladbe za alpsko ljudsko glasbo iz Slovenije, Avstrije, Nemčije, severne Italije in severne Hrvaške.

Easeus - Hosts Blocker.bat !!exclusive!!

Save the code below as and Run as Administrator .

:show cls echo ---------------------------------------------- echo Currently Blocked Websites echo ---------------------------------------------- echo. echo (Lines starting with %loopback% in hosts file) echo ---------------------------------------------- findstr /i /c:"%loopback%" "%hosts%" | findstr /v "#" echo ---------------------------------------------- echo. pause goto menu easeus hosts blocker.bat

Here is the text for a Windows batch file that blocks/unblocks websites by modifying the hosts file using EaseUS-like logic (simple redirect to 127.0.0.1 ). Save the code below as and Run as Administrator

echo. echo [SUCCESS] %site% has been unblocked (if it was blocked). echo [INFO] Flushing DNS cache... ipconfig /flushdns >nul pause goto menu pause goto menu Here is the text for

if "%choice%"=="1" goto block if "%choice%"=="2" goto unblock if "%choice%"=="3" goto show if "%choice%"=="4" goto restore if "%choice%"=="5" goto end echo Invalid choice. Please try again. pause goto menu

:: Create a temporary file without the line findstr /v /i /c:"%loopback% %site%" "%hosts%" > "%temp%\hosts.tmp" copy "%temp%\hosts.tmp" "%hosts%" >nul del "%temp%\hosts.tmp"

Scroll to Top