Skip to content

Panic Mode

Panic mode is an emergency feature that immediately blocks all domains and prevents bypassing.

Panic mode is designed for crisis moments when you need absolute protection:

  • All domains blocked regardless of schedule
  • Dangerous commands hidden (unblock, allow)
  • Cannot be disabled until timer expires
  • Minimum 15 minutes to prevent abuse
  • Feeling strong urges to access blocked content
  • Recognizing you’re in a vulnerable state
  • After a “slip” to prevent further access
  • Before a known trigger event
  • When willpower is low
SituationRecommended Duration
Quick urge30-60 minutes
After a slip2-4 hours
Bad day4-8 hours
Weekend protection24-48 hours
Terminal window
# Activate for 1 hour
nextdns-blocker panic 60
# Activate for 30 minutes
nextdns-blocker panic 30m
# Activate for 4 hours
nextdns-blocker panic 4h
# Activate for 1 day
nextdns-blocker panic 1d
⚠️ PANIC MODE ACTIVATED
Duration: 60 minutes
Expires at: 2024-01-15 15:30:00
All domains are now blocked.
The following commands are disabled:
- unblock
- allow
- disallow
Panic mode cannot be cancelled.
Wait for expiration or use 'panic extend' to add more time.

Every domain in your blocklist is blocked, regardless of:

  • Schedule (available hours ignored)
  • Current time
  • Pending unblock actions

These commands become invisible:

CommandWhy Hidden
unblockWould bypass panic
allowWould create exceptions
disallowConsistency

Attempting to run them:

Terminal window
nextdns-blocker unblock reddit.com
# Error: Command 'unblock' is not available during panic mode
  • status - Check current state
  • config push - Runs but only blocks
  • config show - View configuration
  • watchdog status - Check automation
  • panic extend - Add more time
  • panic status - Check remaining time
Terminal window
nextdns-blocker panic status

Output when active:

Panic Mode Status
━━━━━━━━━━━━━━━━━
Status: ACTIVE ⚠️
Activated: 2024-01-15 14:30:00
Expires: 2024-01-15 15:30:00
Remaining: 45 minutes
Hidden commands: unblock, allow, disallow

Need more protection? Extend:

Terminal window
nextdns-blocker panic extend 30

Output:

Panic mode extended by 30 minutes
New expiration: 2024-01-15 16:00:00
Remaining: 75 minutes

During panic mode, sync:

  1. Blocks all domains - Ignores schedules
  2. Skips unblocks - No automatic unblocking
  3. Skips allowlist - No exceptions
  4. Pauses pending actions - Won’t execute

This ensures complete lockdown.

Pending unblock actions during panic:

  • Timers continue - Time still passes
  • Execution skipped - Actions don’t run
  • Resume after - Execute when panic ends

This is intentional.

The effectiveness of panic mode comes from its inescapability:

  • No “just this once” temptation
  • Can’t talk yourself out of it
  • Forces waiting

If you could cancel, you would during weak moments.

When panic mode ends:

  1. Normal schedule evaluation resumes
  2. Hidden commands become visible
  3. Allowlist sync resumes
  4. Pending actions execute (if due)

Panic state stored in:

  • macOS/Linux: ~/.local/share/nextdns-blocker/.panic
  • Windows: %LOCALAPPDATA%\nextdns-blocker\.panic

Contains ISO 8601 expiration timestamp.

15 minutes minimum prevents:

  • Accidental very short panics
  • Abuse of the feature
  1. Force sync:

    Terminal window
    nextdns-blocker config push
  2. Check watchdog:

    Terminal window
    nextdns-blocker watchdog status

Might be:

  • Cached in browser (clear cache)
  • Cached in OS DNS (flush DNS)
  • Not using NextDNS

Flush DNS:

Terminal window
# macOS
sudo dscacheutil -flushcache
# Linux
sudo systemctl restart systemd-resolved
# Windows
ipconfig /flushdns

Not recommended, but possible:

Terminal window
# Delete panic file (macOS/Linux)
rm ~/.local/share/nextdns-blocker/.panic
# Delete panic file (Windows)
del %LOCALAPPDATA%\nextdns-blocker\.panic

This defeats the purpose. Only use for genuine emergencies.

  1. Use proactively - Before urges peak, not during
  2. Start with longer durations - Better safe than sorry
  3. Extend freely - No shame in needing more time
  4. Combine with schedules - Panic is backup, not primary
  5. Tell someone - Accountability helps