Deleting and recreating a block rule every exam week or every focus session is wasted work. The rule can simply sleep. Disable it and the app is online; enable it and the app is fenced — two clicks, nothing rebuilt.
Every firewall rule has an enabled state, and that state is the whole trick for temporary blocks. A disabled rule does nothing at all — no traffic is touched — but its settings stay saved. Keep one ready-made block rule per app, and "offline for the evening" becomes a right-click instead of a seven-screen wizard.
wf.msc → Outbound RulesTip: name temporary rules so you recognise them at a glance — Block - Game (Exam) tells future-you exactly why it exists.
Administrator Command Prompt:
netsh advfirewall firewall set rule name="Block Game" new enable=no
netsh advfirewall firewall set rule name="Block Game" new enable=yes
Administrator PowerShell equivalents:
Disable-NetFirewallRule -DisplayName "Block Game"
Enable-NetFirewallRule -DisplayName "Block Game"
One caution shared with delete: netsh works by name, so if two rules share the name, both flip together. Unique names keep switches predictable.
Two quick checks settle any confusion:
wf.msc, a greyed icon means the rule is disabled — the app should be onlinenetsh advfirewall firewall show rule name="Block Game" and read the Enabled lineAnd remember the app itself: after enabling a block, restart the app. A program already connected can hold its session for a while and make an active rule look asleep.
Honestly: yes, but it is a do-it-yourself project. Windows Task Scheduler can run the netsh command above at set times — for example disable at 9 in the morning, enable at 5 in the evening — because the command is just text. Create two basic tasks with those commands, running with highest privileges. It works, but test it manually first; a typo in a scheduled command fails silently while you assume the block is on. For most people, the 30-second right-click is the better tool.
Watch the video to create the rule once — then this page's switch handles every time after.
▶️ Watch Full VideoNo. A disabled rule is completely inert — Windows skips it as if it were not there. Only its settings remain stored.
Existing connections can drain slowly. Close the app fully and reopen it — fresh connection attempts hit the enabled rule immediately.
Only with an administrator account. Changing firewall rules needs elevation, so a standard user cannot flip your switch — which is exactly why this works for study-time rules.