@ECHO OFF
COLOR 0A
:head
cls
TITLE Shield Ku6, Youku, Tudou, Thunder and other online video buffer ads
::ECHO Screening Ku6, Youku, Potato, Thunder and other online video buffer ads
echo.&echo.
echo ┌───────:: Block video ads::────────┐
echo │ │
echo │ 1. Need to block video ads (rewrite host file after backup) │
echo │ │
echo │ 2.Do not block video ads (restore host files) │
echo │ │
echo │ 3. Handling video black screen issues │
echo │ │
echo │ 0.Exit │
echo │ │
echo └────────────────────────┘
echo.
set /ps El= Please enter (1,2,3,0):
echo %sel%|
Findstr /be "[0-3]*" >nul &&goto:sta|
|
(echo input error, please re-enter &echo.&pause&goto:head)
:sta
if %sel%==1 set words=need to block video ads & Goto:backup
if %sel%==2 set words=Do not block video ads&goto:recover
if %sel%==3 set words=Processing video black screen issues& Goto:black
if %sel%==0 exit
echo selected %sel%, which will be set to [words]
echo.&%0
:backup
TITLE is backing up the host file
ECHO.&ECHO is backing up the host file
if exist %windir%\\system32\\drivers\\etc\\ Hosts.bak (echo backup file already exists, no backup) else (copy %windir%\\system32\\drivers\\etc\\hosts %windir%
\\system32\\drivers\\etc\\hosts.bak&if exist %windir%\\system32\\drivers\\etc\\hosts.bak echo Backup completed)
TITLE is completing the masking function
ECHO.&ECHO is completing the blocking function
> ;>%windir%\\system32\\drivers\\etc\\hosts echo.
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 atm.youku.com
>>%windir%\\system32\\driv Ers\\etc\\hosts echo 127.0.0.1 Fvid.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 html.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 valb.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\ Hosts echo 127.0.0.1 valc.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 valo.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 valp.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0. 0.1 valf.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 lstat.youku.com
>>%windir %\\system32\\drivers\\etc\\hosts echo 127.0.0.1 speed.lstat.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 urchin.lstat.youku .com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 stat.youku.com
>>%windir%\\system32\\drivers\\ Etc\\hosts echo 127.0.0.1 static.lstat.youku.com
>>%windir%\\s Ystem32\\drivers\\etc\\hosts echo 127.0.0.1 vid.atm.youku.com
>>%windir%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 walp.atm.youku.com
ipconfig /flushdns >nul
echo.
TITLE Shielding completed, please check if it is successful
ECHO Shielding completed, please check if it succeeds
pause
goto:head
:recover
CLS
TITLE does not block ads, restore host files
ECHO .&ECHO does not block ads, restore host files
if exist %windir%\\system32\\drivers\\etc\\hosts.bak (copy /y %windir%\\system32\\drivers\\etc\\hosts.bak % Windir%\\system32\\drivers\\etc\\hosts) else
(echo.&echo backup file does not exist, cannot be restored)
ipconfig /flushdns >nul
ECHO.
pause
goto:head
:black
TITLE handles video black screen issues
ECHO handles video black screen issues
dir "%userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\" /ad/b >%SystemDrive%\\DirTmp.txt
for /f %%a in (%SystemDrive%\\DirTmp.txt) do rd /s /q " %userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\%%a"
md "%userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\static.youku.com"< Br>
attrib +a "%userprofile%\\Application Data\\Macromedia\\Flash Player\\#SharedObjects\\static.youku.com"
del /f /q %SystemDrive%\\DirTmp.txt< Br>
ECHO.&ECHO operation is complete!
pause
goto:head
:end
exit
Sogou input method, as the most commonly used, most user-friendly input method software, everyone is
League of Legends LOL is the mainstay of the metal equipment skin has been exposed, then this skin e
The EXE software title can be modified, presumably this problem has been a lot of small partners. He
Thunders download method is divided into ordinary download and high-speed channel download. Ordinary
Ai Si Assistant mobile version of the features and installation instructions
Orangutan assistant black screen solution
How WPS makes digital band wps input with circle digital method
Famine brain damage value does not reduce the code How does famine not reduce brain residual value
CF group buys a big sale, heroic weapons are willing to buy back to CF point
Xiaomi 4 can't call, can't talk, how to do
Word Document Quick Format Technique
360 browser splash screen solution
2015 Mid-Autumn Festival National Day ticket fight has been opened Life calendar helps you grab
WPS2016 how to enter square symbol
How to recover deleted files by using Tiger File Recovery Software
Vista system open window slow solution
How to uninstall ie10 in Win7 system
Use the Excel form password function to manage documents
Windows 10 Mobile was found to have traffic BUG
How does Windows 8 system suddenly stop working? How to fix
Windows 7 VHD magic: give the system a double insurance (2)
How to upgrade Win7 system to Win10