LoL 客戶端每次啟動隨機佔用 50000-65355 之間的 UDP 端口,需批量封鎖。
wf.msc)。50000-65355 → 下一步。僅封端口範圍可能誤傷其他應用。可建立「程序」規則:
LeagueClient.exe 或 League of Legends.exe。50000-65355(或全部端口)。# PowerShell 一鍵腳本(管理員運行)
New-NetFirewallRule -DisplayName "Block LoL UDP" -Direction Outbound -Protocol UDP -RemotePort 50000-65355 -Action Block -ProgramPath "C:\Riot Games\League of Legends\LeagueClient.exe" -Enabled True
resmon)→ 網絡 → 查看 LeagueClient.exe UDP 連接狀態為「阻斷」。Windows 防火牆原生支持端口範圍與程序綁定,**出站規則 + UDP 50000-65355 + 綁定 LoL 進程** 即可精準封鎖,不影響其他應用。