Technical Anshu
Tutorials Blog
⏱️ Temporary Block

Temporarily Block Internet for an App Enable Disable Firewall Rule

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.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 30 second switch
🎥 The video creates the block — this guide turns it into a switch you can flip any time

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.

Outbound Rules — One Rule, Two States
Block - Game  Outbound • BlockENABLED = APP OFFLINE
Block - Game  (same rule, greyed)DISABLED = APP ONLINE
Right-click the rule → Disable Rule or Enable Rule
Enabled rules show in full colour; disabled rules sit greyed and harmless until you wake them.
1

Flip the Switch in the GUI

  1. Open wf.msc → Outbound Rules
  2. Right-click your block rule → Disable Rule — the app is back online instantly
  3. When focus time starts, right-click the same rule → Enable Rule — the app is offline again

Tip: name temporary rules so you recognise them at a glance — Block - Game (Exam) tells future-you exactly why it exists.

2

Flip It from Command Line

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.

3

Confirm the Current State Before You Blame the App

Two quick checks settle any confusion:

  1. In wf.msc, a greyed icon means the rule is disabled — the app should be online
  2. Or run netsh advfirewall firewall show rule name="Block Game" and read the Enabled line

And 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.

4

Can the Switching Happen on a Schedule?

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.

🔴 Disable is not delete. Disabled = the rule sleeps and can be woken in two clicks. Delete = it is gone and must be rebuilt. For anything you will block twice, always disable.

🎥 Watch the Complete Video

Watch the video to create the rule once — then this page's switch handles every time after.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Does a disabled rule slow the PC or affect traffic in any way?

No. A disabled rule is completely inert — Windows skips it as if it were not there. Only its settings remain stored.

I enabled the rule but the app stayed online for minutes. Why?

Existing connections can drain slowly. Close the app fully and reopen it — fresh connection attempts hit the enabled rule immediately.

Can another user on the PC re-enable the rule?

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.

This guide is based on the Technical Anshu video Block Internet Access for Any Application in Seconds • Stuck on any step? Ask in the video comments — you will get a reply there 🙏