An effective way to block websites with batch because some antivirus, firewalls ... and other things, give "access denied" when writing this:
(
:: List of Websites:
echo 127.0.0.1 www.facebook.com
echo 127.0.0.1 http://www.facebook.com/
)>> "% Windir% \ system32 \ drivers \ etc \ hosts"
But I commented earlier that the majority "I think" given "asseco denied" if we have a good firewall, antivirus ...
But there is code designed to fool the firewall, antivirus, system ... this here is very simple:
@ echo off
copy / y "% windir% \ system32 \ drivers \ etc \ hosts" "% windir% \ system32 \ drivers \ etc \ hosts.txt"
(
echo 127.0.0.1 example.com
echo 127.0.0.1 www.example.com
)>> "% Windir% \ system32 \ drivers \ etc \ hosts.txt"
of / f / q "% windir% \ system32 \ drivers \ etc \ hosts"
ren "% windir% \ system32 \ drivers \ etc \ hosts.txt" hosts "
In this way, fooling the firewall enabled. (maybe some do not work to block the websites, then the problem consists in the change of code) is supposedly normal host entry in that file, only use it with some bad intentions
..............................................................
Una manera efectiva de bloquear webs con batch, ya que algunos antivirus, firewalls... y otras cosas, dan "aceso denegado" cuando escribimos esto:
(
:: Lista de webs :
echo 127.0.0.1 www.facebook.com
echo 127.0.0.1 http://www.facebook.com/
) >> "%windir%\system32\drivers\etc\hosts"
Pero anteriormente yo comentaba,que a la mayoria "creo yo" les dara "asseco denegado" si tenemos un buen firewall , antivirus...
Pero hay codigo creado para engañar al firewall, antivirus , sistema... es muy sencillo aqui esta:
@echo off
copy /y "%windir%\system32\drivers\etc\hosts" "%windir%\system32\drivers\etc\hosts.txt"
(
echo 127.0.0.1 example.com
echo 127.0.0.1 www.example.com
) >> "%windir%\system32\drivers\etc\hosts.txt"
del /f /q "%windir%\system32\drivers\etc\hosts"
ren "%windir%\system32\drivers\etc\hosts.txt" "hosts"
De esta manera engañamos al firewall activado. (quizas a algunos no les funciona lo de bloquear las webs, seguramente el problema consite en el cambio de codigo)supuestamente es normal ingresar host en ese archivo, solamente que algunos lo usan con malas intenciones

No hay comentarios:
Publicar un comentario