有没有 Win 下方便限制程序联网的软件?

2017-05-24 22:48:15 +08:00
 ilook

因为在外用电脑有时会遇到没网的情况,会用手机开热点,但是担心流量问题;

所以有没有能快速方便的限制程序的软件? 最好是能有白名单快速切换策略,一键切换可联网程序。现在用的杀软防火墙只能一次禁用一个,不太适用。

2596 次点击
所在节点    问与答
11 条回复
peato
2017-05-24 23:02:09 +08:00
netlimiter
Laynooor
2017-05-24 23:05:38 +08:00
TripMode
免费试用 7 天
ilook
2017-05-24 23:18:44 +08:00
@peato 试过,但只能一个个限速到几 kb...
DuckJK
2017-05-24 23:20:40 +08:00
proxifier
rosu
2017-05-24 23:21:29 +08:00
记得火绒有这个功能。你尝试一下。
ilook
2017-05-24 23:23:53 +08:00
@Laynooor 不错,正版也不贵
alschw
2017-05-25 07:59:53 +08:00
Google 搜 Fab(Firewall App Blocker ) 免费绿色的一个小软件,很实用,直接调用 Win 本身的防火墙规则屏蔽程序联网
wisefree
2017-05-25 08:39:42 +08:00
任何一款带防火墙功能的软件都行的,比如 eset
alschw
2017-05-25 09:36:37 +08:00
sslyxhz
2017-05-25 09:53:58 +08:00
火绒 eset 防火墙都挺好用的
wangdef09
2017-05-25 13:47:09 +08:00
rem 批处理获取管理员权限
:-------------------------------------
%1 mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&&exit /b
CD /D "%~dp0"
:-------------------------------------

::添加阻止程序出站规则
(
echo "Office_OfficeClickToRun","%ProgramFiles%\Common Files\microsoft shared\ClickToRun\OfficeClickToRun.exe"
echo "Office_msoia","%ProgramFiles%\Microsoft Office\root\Office16\msoia.exe"
echo "Office_WINWORD","%ProgramFiles%\Microsoft Office\root\Office16\WINWORD.EXE"
echo "Office_EXCEL","%ProgramFiles%\Microsoft Office\root\Office16\EXCEL.EXE"
echo "Office_POWERPNT","%ProgramFiles%\Microsoft Office\root\Office16\POWERPNT.EXE"
echo "Office_VISIO","%ProgramFiles%\Microsoft Office\root\Office16\VISIO.EXE"
echo "Office_WINPROJ","%ProgramFiles%\Microsoft Office\root\Office16\WINPROJ.EXE"
echo "Office_MSPUB","%ProgramFiles%\Microsoft Office\root\Office16\MSPUB.EXE"
echo "Office_MSACCESS","%ProgramFiles%\Microsoft Office\root\Office16\MSACCESS.EXE"
echo "AutoCAD_LMU","%ProgramFiles%\Common Files\Autodesk Shared\AdLM\R11\LMU.exe"
echo "AutoCAD_DADispatcherService","C:\Program Files\Autodesk\AutoCAD 2016\DADispatcherService.exe"
echo "AutoCAD_acad","C:\Program Files\Autodesk\AutoCAD 2016\acad.exe"
)>list.txt
FOR /F "usebackq tokens=1,2 delims=," %%i in ( list.txt ) do (
netsh advfirewall firewall del rule name="%%i">nul 2>nul
netsh advfirewall firewall add rule name="%%i" program=%%j action=block dir=out>nul
echo 阻止%%i 程序出站规则已添加
)
del list.txt

::添加阻止服务出站规则
(
echo "Windows Update","wuauserv"
)>list.txt
set svchost_exe="%%systemroot%%\system32\svchost.exe"
FOR /F "usebackq tokens=1,2 delims=," %%i in ( list.txt ) do (
netsh advfirewall firewall del rule name=%%i>nul 2>nul
netsh advfirewall firewall add rule name=%%i service=%%j action=block dir=out program="%svchost_exe%">nul
echo 阻止%%i 服务出站规则已添加
)
del list.txt
pause
rem netsh advfirewall firewall add rule,就会有帮助内容,里面正好有设置端口的例子
rem netsh advfirewall firewall del rule name=%%i>nul 2>nul
rem netsh advfirewall firewall add rule name="%%i" program=%%j action=block dir=out>nul
---------------------------------------------------------------------------------------------------------------------------------------
以上存为批处理,管理员运行

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/363583

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX