- Salve o codigo abaixo no bloco de notas como .bat
- Execute como Administrador ou inserir o script como logon em uma GPO.
@echo off
SET NOVO=# 127.0.0.1 http://pt-br.youtube.com/
find /i "%NOVO%" %systemroot%\system32\drivers\etc\hosts
if NOT %ERRORLEVEL% EQU 0 (
ECHO %NOVO% >> %systemroot%\system32\drivers\etc\hosts
)
SET NOVO=# 127.0.0.1 http://pt-br.facebook.com/
find /i "%NOVO%" %systemroot%\system32\drivers\etc\hosts
if NOT %ERRORLEVEL% EQU 0 (
ECHO %NOVO% >> %systemroot%\system32\drivers\etc\hosts
)
SET NOVO=# 127.0.0.1 https://https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=http://mail.google.com/mail/&scc=1<mpl=default<mplcache=2
find /i "%NOVO%" %systemroot%\system32\drivers\etc\hosts
if NOT %ERRORLEVEL% EQU 0 (
ECHO %NOVO% >> %systemroot%\system32\drivers\etc\hosts
)
SET NOVO=# 127.0.0.1 gmail.com
find /i "%NOVO%" %systemroot%\system32\drivers\etc\hosts
if NOT %ERRORLEVEL% EQU 0 (
ECHO %NOVO% >> %systemroot%\system32\drivers\etc\hosts
)
Nenhum comentário:
Postar um comentário