@echo off REM This script file is only intended to remove the blocking hosts REM file and go back to the original ONLY if you installed the REM the blocking hosts file with the install.bat script that is with REM install package at SecureMecca.com or HostsFile.org. setlocal REM Replace the current file with the original if you can. if exist "%WinDir%\System32\drivers\etc\hosts.org" ( if exist "%WinDir%\System32\drivers\etc\hosts" ( attrib +a -r -h -s "%WinDir%\System32\drivers\etc\hosts" del "%WinDir%\System32\drivers\etc\hosts" ) attrib +a -r -h -s "%WinDir%\System32\drivers\etc\hosts.org" echo Replacing your current hosts file with original hosts file copy /Y "%WinDir%\System32\drivers\etc\hosts.org" "%WinDir%\System32\drivers\etc\hosts" echo DONE. ) ) else ( echo The original hosts file seems to be missing. Delete the echo current %WinDir%\System32\drivers\etc\hosts file and echo replace it with one that has a blank line, the next line echo and a blank line after the next line: echo 127.0.0.1 localhost ) :exit pause endlocal