From 0cbe6897249184348644a2d091b232bb0c20d14e Mon Sep 17 00:00:00 2001 From: Flowseal Date: Mon, 23 Feb 2026 16:11:26 +0300 Subject: [PATCH] Diagnostics check for hosts youtube entries --- service.bat | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/service.bat b/service.bat index 538c8fb..933d776 100644 --- a/service.bat +++ b/service.bat @@ -549,6 +549,17 @@ if !dohfound!==0 ( ) echo: +:: Hosts file check +set "hostsFile=%SystemRoot%\System32\drivers\etc\hosts" +if exist "%hostsFile%" ( + set "yt_found=0" + >nul 2>&1 findstr /I "youtube.com" "%hostsFile%" && set "yt_found=1" + >nul 2>&1 findstr /I "yotou.be" "%hostsFile%" && set "yt_found=1" + if !yt_found!==1 ( + call :PrintYellow "[?] Your hosts file contains entries for youtube.com or yotou.be. This may cause problems with YouTube access" + ) +) + :: WinDivert conflict tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul set "winws_running=!errorlevel!"