webfilteringdatabase.com
Home Find Your Solution
Features
Domain Categorization API Real-Time Classification 59 Filtering Categories Offline Database (120M) Managed DNS Filter ML Classification Content Classification
Industries
K-12 Schools Corporate Healthcare Government ISPs
Tools
Domain Lookup Bulk Categorization Category Explorer
Resources
Pricing API Documentation Login / Sign Up
Home / Block guides / VPN apps
Admin guide: VPN / Proxy / Anonymizers

How to block VPN apps on your network

Personal VPN apps tunnel around every other rule you set. This guide shows how to stop them in layers: provider domains, server addresses, protocols and the devices themselves.

It is written for IT admins, MSPs, school IT teams and vendors who build filtering products, with honest notes on what protocol detection can and cannot catch.

Why organisations block personal VPN apps

A corporate VPN protects your users. A consumer VPN app protects the user from you: it hides traffic from your filter, your logs and your security tools. That is why most acceptable use policies forbid them on managed networks.

Filtering stops working

Once traffic leaves inside a tunnel, your DNS filter and web categories never see the destination. Every other block on the network becomes optional.

Security blind spots

Threat detection, data loss prevention and malware scanning all depend on seeing traffic. Free VPN apps also have a history of bundling adware or collecting browsing data.

Compliance and duty of care

Schools that certify CIPA compliance must filter minors' access, and a tunnel defeats that. Regulated firms need records of activity on their systems.

Licensing and geo rules

Streaming and software licences are often tied to a country. Staff who appear to browse from elsewhere can put contracts and audit results at risk.

Incident response gets harder

When something goes wrong, investigators need to know where a device connected. Tunnelled sessions leave only one opaque connection in the logs.

Bandwidth and support load

Tunnels add overhead and break things like local printing or captive portals. Help desks then spend time on problems the user created.

The three layers a VPN block has to cover

A VPN app goes through three stages: it is found and downloaded, it logs in and picks a server, then it builds the tunnel. Each stage leaves a different trace, so each needs a different control.

1

Discovery and sign-up

  • Provider websites, review sites and app download pages
  • Account sign-up and payment pages
  • Best control: category block on VPN / Proxy / Anonymizers in DNS or the web filter
2

Login and server lists

  • API hostnames the app calls to authenticate and fetch servers
  • Update and telemetry domains
  • Best control: the same category, plus application signatures on the firewall
3

The tunnel itself

  • Connections to VPN server IP addresses
  • Recognisable protocols or disguised HTTPS
  • Best control: egress rules, protocol detection and device controls

Rule of thumb: the earlier you stop the app, the more reliable the block. Layer 1 and 2 blocks rely on names, which are stable and easy to categorise. Layer 3 blocks rely on traffic patterns, which VPN makers deliberately change.

Protocol detection limits: what your firewall can actually see

Many guides suggest "just block the VPN ports". That works for a minority of apps. The table shows the common tunnel types, how they usually appear on the wire and how far you can trust detection.

Tunnel typeTypical traffic patternCan it be blocked by port?Detection difficultyWhat to rely on
IPsec / IKEv2UDP 500 and 4500, ESP protocolYes, but your own site to site and remote VPNs may use the same portsEasyPort rules with allowlisted corporate gateways
L2TP and PPTPUDP 1701 (with IPsec), TCP 1723 and GREYes, and these older protocols are rarely needed todayEasyBlock outright unless a legacy system needs them
OpenVPN (default)UDP or TCP 1194, distinctive handshakePartly, because providers can move it to any portModerateApplication signatures that look at the handshake
WireGuard based appsUDP on a configurable port, short fixed handshakeRarely, ports vary by providerModerateSignatures, plus blocking provider domains so the app cannot fetch keys and servers
OpenVPN or proprietary over TCP 443Looks like a long TLS session to one serverNo, port 443 must stay openHardDomain categories, TLS inspection where lawful, IP reputation
Obfuscated or "stealth" modesTraffic shaped to resemble ordinary HTTPS or random noiseNoHardDevice controls on managed endpoints, provider domain blocks
Browser extension VPNsHTTPS proxy connections from inside the browserNoModerateExtension allowlists in browser policy, category blocks on proxy endpoints
Encrypted DNS only (DoH, DoT)DNS hidden inside HTTPS, or TLS on port 853DoT yes (853), DoH noModerateBrowser and OS policy to disable DoH, block known DoH resolvers

Port numbers above are common defaults only. VPN providers can and do run their services on other ports. Treat port rules as a cheap first filter, never the whole answer.

Why domains still matter for disguised tunnels: even a stealth mode VPN has to log in, download its server list and receive updates. Those calls go to named hostnames, and a well maintained VPN / Proxy / Anonymizers category catches them before the tunnel exists.

Methods: where to put the VPN block

No single box covers everything. Pick the methods that match what you control, then combine at least one name based control with one traffic based control.

Home or small office router

Good for: very small sites, guest Wi-Fi
  1. Set the router's DHCP to hand out a filtering DNS resolver that blocks the VPN category.
  2. Add a rule that blocks outbound DNS (port 53) to anything except that resolver.
  3. If the router supports it, block outbound UDP 500, 4500, 1194 and TCP 1723.
  4. Add known provider domains to the router's own blocklist if it has one.

Consumer routers rarely inspect traffic, so they cannot stop a tunnel on port 443. Use them only as the first layer.

Next generation firewall

Good for: offices, campuses, branch networks
  1. Enable the URL or web filter category for VPN, proxy and anonymizer sites in the outbound policy.
  2. Turn on application control and block the VPN and tunnelling application group, keeping your own VPN allowed.
  3. Create explicit allow rules for your corporate VPN gateways and partner endpoints above the block.
  4. Block DNS, DoT and known DoH resolvers except your own.
  5. Where policy allows, enable TLS inspection for uncategorised destinations.

Most firewall vendors ship VPN application signatures. Their coverage of new and obfuscated apps varies, which is why the category layer matters.

DNS filter

Good for: MSPs, roaming users, schools
  1. Block the VPN / Proxy / Anonymizers category in every policy that needs it.
  2. Block encrypted DNS bypass: known DoH hostnames and the Firefox canary domain use-application-dns.net.
  3. Return a clear block page so users know why the site failed.
  4. Review the query log weekly for VPN related names that slipped through.

DNS filtering is fast and cheap to deploy across many clients. Read more in our comparison of DNS filtering vs web filtering.

Secure web gateway or cloud proxy

Good for: hybrid workforces
  1. Force all endpoint web traffic through the gateway with an agent or PAC file.
  2. Block the anonymizer category and any "uncategorised" destination that receives long lived connections.
  3. Alert on agents being disabled, since that is the usual first step before a VPN is used.

Gateways see more than DNS, but only for traffic that actually reaches them. Pair them with device policy so the agent cannot be switched off.

Device controls: Microsoft Intune, Defender, Google Admin and MDM

On devices you manage, the most reliable VPN block is simply not letting the app install or configure a tunnel. Network rules then become a backstop rather than the main defence.

Windows with Intune

  • Use app control policies (for example Windows Defender Application Control or AppLocker) to allow only approved software.
  • Remove local admin rights so users cannot install VPN clients or virtual network adapters.
  • Deploy your own corporate VPN profile and nothing else.

Microsoft Defender for Endpoint

  • Turn on network protection in block mode so web protection also covers non-Microsoft browsers.
  • Add custom indicators to block VPN provider domains and IP ranges you discover.
  • Use web content filtering categories where your licence includes them.

Google Admin console

  • Block or allowlist Chrome extensions so VPN and proxy extensions cannot be added.
  • Use the URL blocklist policy for provider domains, and turn off DNS over HTTPS or fix it to your resolver.
  • On managed Android and ChromeOS, allow only approved apps from managed Google Play.

iPhone, iPad and Android MDM

  • Restrict app installation to an approved catalogue on supervised or fully managed devices.
  • Use the platform restriction that stops users adding VPN configurations, where available.
  • Push an always on VPN or DNS profile of your own so the device uses your filtering path.

Apple private relay: Apple advises networks that need to disable iCloud Private Relay to return NXDOMAIN or an empty answer for mask.icloud.com and mask-h2.icloud.com. On managed devices you can also disable the feature with an MDM restriction.

Bypass risks and how to close each gap

Expect determined users to try a second route once the first is blocked. These are the gaps admins see most often, from a defender's point of view.

Mobile data hotspot
Risk: a phone shares its own connection and the laptop leaves your network completely.
Close it: on managed laptops, require the endpoint agent or always on VPN regardless of network.
Portable VPN clients
Risk: some clients run without installation from a USB stick or the downloads folder.
Close it: application allowlisting that blocks unsigned or unapproved executables.
Encrypted DNS
Risk: the app or browser resolves names over DoH, so your DNS block never fires.
Close it: browser policy to disable DoH, firewall blocks on known DoH resolvers.
Direct IP connections
Risk: an already configured app connects straight to server addresses with no DNS lookup.
Close it: application signatures, IP reputation feeds, and alerts on long single destination sessions.
Brand new provider domains
Risk: mirror sites and fresh domains appear faster than manual lists are updated.
Close it: a category feed with daily updates and a policy for newly registered domains.
Web proxies and Tor
Risk: users switch to a browser based proxy or Tor when the VPN fails.
Close it: follow our guides to block proxy sites and block Tor on your network.
Remote desktop to home
Risk: a remote access tool reaches a home PC and browses from there.
Close it: limit remote access apps to approved tools, as covered in our guide to blocking remote access tools.

How to test that VPN apps are really blocked

Testing should use a managed device and a separate unmanaged test device, on each network segment where the policy applies. Record the result of each check so you can repeat it after changes.

  • Open three or four well known VPN provider websites and confirm the block page appears.
  • Run a lookup for each provider domain in our domain lookup tool to confirm its category.
  • On a test device with a VPN app already installed, try to log in. The login should fail at the API stage.
  • Try connecting with each protocol setting the app offers, including any "automatic" or stealth mode.
  • Confirm your own corporate VPN and partner tunnels still connect from every site.
  • Check DNS logs: the blocked attempts should appear as category hits, not as silent failures.
  • Try installing a VPN browser extension on a managed browser profile. Policy should refuse it.
  • On a managed phone, confirm the app store hides or refuses VPN apps and VPN settings are locked.
  • Repeat after firewall firmware updates and after any change to TLS inspection rules.
  • Schedule a monthly re-test with a different set of providers, since apps change behaviour over time.

Category-based blocking with our database

Hand made lists of VPN domains go stale within weeks. Providers launch mirror sites, affiliate review pages and new API hostnames constantly. A category database turns the problem into one policy setting.

Our VPN and proxy category covers VPN provider sites, their account and download domains, web proxies and anonymizing services. Vendors embed the data in firewalls, DNS filters and gateways, so every customer gets the same coverage.

120Mcategorized domains in the full database
59web filtering categories, plus the IAB taxonomy in the same file
~300knewly registered domains categorized every day
Dailydelta files, with a full refresh of other domains monthly

How vendors and MSPs use it

  • Load the file into your own platform: CSV, Parquet or JSON, on-premise or air-gapped.
  • Export the VPN category as DNS RPZ, hosts files or firewall external dynamic lists, as explained in our guide to blocklist formats.
  • Use the lookup API included with licences for real time checks of unknown domains.
  • Pair it with malware and phishing categories so risky VPN download mirrors are caught twice.
  • Read how we package the data in the web filtering database overview.

A sensible VPN policy by organisation type

OrganisationTypical ruleExceptions to plan for
K-12 school or districtBlock the VPN / Proxy / Anonymizers category on all student networks and devicesStaff remote access to district systems, approved learning platforms
Office based businessBlock consumer VPN apps; allow only the corporate VPNClient VPNs for consultants, vendor support tunnels
MSP with many tenantsCategory block as a default template, tenant level overridesEach tenant's own VPN gateway, security testing teams
Library or public Wi-FiBlock provider sites and older protocols, accept limits on unmanaged devicesPatrons who must reach an employer's VPN, under local policy
Healthcare or financeBlock and alert, investigate repeated attemptsThird party clinical or trading connections

For more on sector rules, see our pages on K-12 school web filtering and web filtering for MSPs.

VPN blocking FAQ

Can a firewall block every VPN?

No. Standard protocols such as WireGuard, OpenVPN and IPsec are easy to spot, but VPNs that wrap traffic in ordinary HTTPS on port 443 can look like normal browsing. A complete approach combines category blocking of VPN provider domains, application signatures and device controls on managed hardware.

Will blocking VPNs break our own remote access VPN?

It can if you block protocols broadly. Allowlist the gateway addresses and hostnames of your own corporate VPN, and of partners you connect to, before you enable protocol or category blocks.

Is blocking the VPN provider's website enough?

It stops new downloads and sign-ups, and most apps also need provider domains to log in and fetch server lists. An app that is already configured can still connect directly to server IP addresses, so add IP and protocol controls.

How do I block VPN apps on phones?

On managed phones use MDM: restrict which apps can be installed, block VPN configuration changes where the platform allows it, and push your own DNS or filtering profile. Unmanaged phones on guest Wi-Fi can only be controlled at the network.

Which category should I block for VPN apps?

In our database the VPN / Proxy / Anonymizers category covers VPN provider sites, their API and download domains, web proxies and anonymizing services. Blocking it in your DNS filter or firewall closes most of the discovery and sign-up paths.

Is it legal to block VPNs on a company network?

Organisations generally control how their own networks and devices are used. Write the rule into your acceptable use policy, tell users, and check local employment and privacy rules before you inspect traffic.

Put VPN and anonymizer coverage inside your product

120 million categorized domains in 59 categories, delivered as files that run in your own systems, with daily updates for new domains. Starter database tiers from $999; enterprise and OEM licences are quoted per deployment.

License the database

WireGuard is a registered trademark of Jason A. Donenfeld. OpenVPN is a trademark of OpenVPN Inc. Microsoft, Windows, Intune and Defender are trademarks of Microsoft Corporation. Google, Chrome, ChromeOS, Android and Google Play are trademarks of Google LLC.

Apple, iPhone, iPad and iCloud are trademarks of Apple Inc. Firefox is a trademark of the Mozilla Foundation. These names are used here only to identify the products discussed. Web Filtering Database is not affiliated with, sponsored or endorsed by any of these companies.