Command copied to clipboard!

DOMAIN KILL SWITCH

Block access to specific domains when VPN disconnects

PROTECTED
VPN Connected
198.51.100.42
Real IP hidden
If VPN disconnects → selected domains are blocked

Domain Kill Switch protects your privacy by blocking access to specific domains when the VPN connection drops. Your real IP address will never be exposed to these services. Unlike a full internet kill switch, you can still browse other websites normally.

Protected Domains

Currently protected domains (VPN kill switch active)
secure-connect.app
myvpn.dashboard
Windows
PowerShell (Admin)
🔒 BLOCK DOMAINS
$domains = @("secure-connect.app", "myvpn.dashboard"); foreach ($d in $domains) { New-NetFirewallRule -DisplayName "KILLNET Block $d" -Direction Outbound -RemoteAddress (Resolve-DnsName $d -Type A \| Select-Object -ExpandProperty IPAddress) -Action Block -Enabled True -Profile Any }
Blocks only the specified domains via DNS resolution
🔓 UNBLOCK DOMAINS
Get-NetFirewallRule -DisplayName "KILLNET Block *" | Remove-NetFirewallRule
Removes all KILLNET domain block rules
Linux
iptables / root
🔒 BLOCK DOMAINS
# Add to /etc/hosts or use iptables with IPs
domains=("secure-connect.app" "myvpn.dashboard"); for d in ${domains[@]}; do
  ips=$(dig +short $d | grep -E '^[0-9]+'); for ip in $ips; do
    sudo iptables -A OUTPUT -d $ip -j DROP;
  done; done
Blocks traffic to domain IPs using iptables
🔓 UNBLOCK DOMAINS
sudo iptables -F OUTPUT && sudo iptables -P OUTPUT ACCEPT
Flush all OUTPUT rules (⚠️ careful - removes all rules)
macOS
pfctl / Terminal
🔒 BLOCK DOMAINS
(echo "block out quick proto {tcp,udp} from any to {";
  for d in secure-connect.app myvpn.dashboard; do
    dig +short $d | grep -E '^[0-9]+' | sed 's/$/,/';
  done; echo "}") | sudo pfctl -f - && sudo pfctl -e
Blocks only specified domains via pf firewall
🔓 UNBLOCK DOMAINS
sudo pfctl -d
Disables pf firewall (all traffic allowed)
⚠️ IMPORTANT: Make sure your VPN is connected BEFORE activating domain blocks. These commands block ONLY the specified domains — your general internet access remains functional. The commands above include our demo domains. Replace them with your own domains.