von DieLunchBox » Fr 7. Aug 2015, 02:45
@echo off
set BLOCKNAME="!!!__Microsoft-IPs__!!!"
set BLOCKLIST="104.40.0.0-104.47.255.255,104.208.0.0-104.215.255.255,208.84.0.0-208.84.7.255,40.64.0.0-40.71.255.255,13.64.0.0-13.107.255.255,208.76.44.0-208.76.47.255,40.126.128.0-40.127.255.255,40.126.0.0-40.126.63.255,40.74.0.0-40.125.127.255"
echo Erstelle eingehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=in action=block remoteip=%BLOCKLIST% enable=yes
echo Erstelle ausgehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=out action=block remoteip=%BLOCKLIST% enable=yes
set BLOCKNAME="!!!__EXPLORER.EXE__!!!"
set BLOCKLIST="1.1.1.1-191.255.255.255,193.0.0.1-255.255.255.255"
echo Erstelle eingehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=in action=block program=C:\windows\explorer.exe remoteip=%BLOCKLIST% enable=yes
echo Erstelle ausgehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=out action=block program=C:\windows\explorer.exe remoteip=%BLOCKLIST% enable=yes
set BLOCKNAME="!!!__SEARCHUI.EXE__!!!"
echo Erstelle eingehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=in action=block program=C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe enable=yes
echo Erstelle ausgehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=out action=block program=C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe enable=yes
pause
@echo off
set BLOCKNAME="!!!__Microsoft-IPs__!!!"
set BLOCKLIST="104.40.0.0-104.47.255.255,104.208.0.0-104.215.255.255,208.84.0.0-208.84.7.255,40.64.0.0-40.71.255.255,13.64.0.0-13.107.255.255,208.76.44.0-208.76.47.255,40.126.128.0-40.127.255.255,40.126.0.0-40.126.63.255,40.74.0.0-40.125.127.255"
echo Erstelle eingehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=in action=block remoteip=%BLOCKLIST% enable=yes
echo Erstelle ausgehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=out action=block remoteip=%BLOCKLIST% enable=yes
set BLOCKNAME="!!!__EXPLORER.EXE__!!!"
set BLOCKLIST="1.1.1.1-191.255.255.255,193.0.0.1-255.255.255.255"
echo Erstelle eingehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=in action=block program=C:\windows\explorer.exe remoteip=%BLOCKLIST% enable=yes
echo Erstelle ausgehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=out action=block program=C:\windows\explorer.exe remoteip=%BLOCKLIST% enable=yes
set BLOCKNAME="!!!__SEARCHUI.EXE__!!!"
echo Erstelle eingehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=in action=block program=C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe enable=yes
echo Erstelle ausgehende Regel fuer %BLOCKNAME%.
netsh advfirewall firewall add rule name="%BLOCKNAME%" dir=out action=block program=C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe enable=yes
pause