V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ilook
V2EX  ›  问与答

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

  •  
  •   ilook · 2017-05-24 22:48:15 +08:00 · 2588 次点击
    这是一个创建于 2731 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    11 条回复    2017-05-25 13:47:09 +08:00
    peato
        1
    peato  
       2017-05-24 23:02:09 +08:00 via iPhone
    netlimiter
    Laynooor
        2
    Laynooor  
       2017-05-24 23:05:38 +08:00 via Android   ❤️ 1
    TripMode
    免费试用 7 天
    ilook
        3
    ilook  
    OP
       2017-05-24 23:18:44 +08:00
    @peato 试过,但只能一个个限速到几 kb...
    DuckJK
        4
    DuckJK  
       2017-05-24 23:20:40 +08:00
    proxifier
    rosu
        5
    rosu  
       2017-05-24 23:21:29 +08:00 via Android
    记得火绒有这个功能。你尝试一下。
    ilook
        6
    ilook  
    OP
       2017-05-24 23:23:53 +08:00
    @Laynooor 不错,正版也不贵
    alschw
        7
    alschw  
       2017-05-25 07:59:53 +08:00 via Android
    Google 搜 Fab(Firewall App Blocker ) 免费绿色的一个小软件,很实用,直接调用 Win 本身的防火墙规则屏蔽程序联网
    wisefree
        8
    wisefree  
       2017-05-25 08:39:42 +08:00 via Android
    任何一款带防火墙功能的软件都行的,比如 eset
    alschw
        9
    alschw  
       2017-05-25 09:36:37 +08:00   ❤️ 1
    sslyxhz
        10
    sslyxhz  
       2017-05-25 09:53:58 +08:00
    火绒 eset 防火墙都挺好用的
    wangdef09
        11
    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
    ---------------------------------------------------------------------------------------------------------------------------------------
    以上存为批处理,管理员运行
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1853 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:39 · PVG 00:39 · LAX 08:39 · JFK 11:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.