河南网通竟然用DNS劫持放起百度推广来了,简直太垃圾了,大家一起来联合起来,把他们DNS劫持的网址都列出来禁掉!
禁用办法,把以下代码存成bat批处理文件双击即可,懂一点的兄弟可以修改一下禁用任何不想访问的网址
————————-以下是BAT内容——————————–
@echo off
//将stHosts的值改为你需要添加的记录
set stHosts=127.0.0.1 www.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo1.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo2.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo3.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo4.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo5.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo6.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo7.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo8.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
set stHosts2=127.0.0.1 hninfo9.cnc114dns.com.cn
FOR /F "eol=# tokens=1 delims=" %%i in (C:WINDOWSsystem32driversetchosts) do if "%stHosts2%"=="%%i" exit
echo %stHosts2%>> C:WINDOWSsystem32driversetchosts
补:
现在网通劫持域名改了,把上面的包含域名的分别换为下面的。
127.0.0.1 yc.jsnetcom.com
127.0.0.1 hndns1.cncmax.cn
127.0.0.1 hndns2.cncmax.cn
127.0.0.1 hndns3.cncmax.cn
127.0.0.1 hndns4.cncmax.cn
127.0.0.1 hndns5.cncmax.cn
127.0.0.1 hndns6.cncmax.cn
127.0.0.1 hndns7.cncmax.cn
127.0.0.1 hndns8.cncmax.cn
127.0.0.1 hndns9.cncmax.cn
127.0.0.1 hndns10.cncmax.cn
或者
打开文件夹:C:WINDOWSsystem32driversetc
找到“hosts文件”
以记事本格式打卡。
然后添加如上代码