ZGuard AntiVPN Manual
Learn how to protect your Minecraft server against VPNs, public & residential proxies, Tor, and malicious connections with ZGuard Free and ZGuard Pro.
1. Installation & Compatibility
ZGuard is built in Java 21 for Paper and Purpur. All checks run 100% asynchronously in the background, guaranteeing stable 20 TPS without stutter or server lag.
Supported versions
Minecraft from 1.21 to 26.3 (Java and Bedrock via GeyserMC / Floodgate).
Networks & Proxies
Native support with IP Forwarding on BungeeCord, Velocity, and Waterfall.
# Installation steps:
1. Download ZGuard-Free.jar or ZGuard-Pro.jar.
2. Place it inside your Minecraft server's plugins/ folder.
3. Start the server to generate the plugins/ZGuard/ directory.
2. YAML Configuration (config.yml)
Every aspect of the plugin can be customized directly from the configuration file:
# Protection mode: # - ENFORCE: kicks unauthorized connections (VPN, Proxies, Tor, blocked ASN) # - MONITOR: logs telemetry without kicking the player detection-mode: ENFORCE # Security level: # - PERMISSIVE: 80/100 risk threshold (only unequivocal evidence) # - BALANCED: 50/100 risk threshold (recommended for most servers) # - STRICT: 25/100 risk threshold (maximum strictness, ideal for competitive servers) security-level: BALANCED # In-memory cache to guarantee 20 TPS cache: ttl-seconds: 3600 max-entries: 50000 # Geographic country filter (BLOCK or ALLOW) countries: mode: BLOCK block: [] allow: [] # ASN blocking, local Whitelist and Blacklist asn: blocked: [] whitelist: [] blacklist: [] # Hotspot and Mobile Carrier Protection (4G / 5G) cellular: enabled: false allow-bedrock: true allowed-carriers: [] blocked-carriers: [] # Messages (messages.yml) and the 19 intelligence providers (modules/) are configured separately.
3. In-Game Commands
| Command | Usage & Description | Edition |
|---|---|---|
| /zguard | Shows the status panel, analyzed connections, and commands. | FREE |
| /zguard reload | Reloads configuration, messages, and modules without restarting the server. | FREE |
| /zguard check <player> | Analyzes the reputation, ISP, country, and risk level of an online player. | FREE |
| /zguard stats | Shows the live BossBar with analyzed connections, blocked count, and TPS. | FREE |
| /zguard whitelist <add|remove|list> | Adds or removes IP addresses from the local whitelist. | FREE |
| /zguard lookup <ip> | Manually inspects any IP address and its GeoIP information. | PRO |
| /zguard history | Displays the log of recent detections in console or chat. | PRO |
| /zguard blacklist <add|remove|list> | Permanently blocks IP addresses on the server. | PRO |
| /zguard country <block|allow|list> | Manages geographic filtering by country code (e.g. ES, FR, US). | PRO |
| /zguard license <key> | Activates or updates your official license key in license.json. | PRO |
| /zguard link | Generates a secure code to sync your server with the web dashboard. | PRO |
| /zguard panic [on|off] | Toggles maximum-emergency defense mode when under attack. | PRO |
| /zguard sync | Forces immediate sync of rules and configuration from the web dashboard. | PRO |
4. Permissions (LuckPerms)
Configure these permissions in your preferred rank manager:
5. Linking with the Web Dashboard (ZGuard Pro)
Connecting your server to the Zplugins panel lets you view real-time charts and adjust settings from your browser:
- Run in console or in-game:
/zguard link. - The plugin will display a 12-character code (e.g.
ABCD-EFGH-JKLM). - Sign in to Zplugins Dashboard and enter the code.
- Your server will link immediately and start sending live telemetry.
6. Discord Webhook Alerts
ZGuard Pro can send styled embed alerts to your Discord channel whenever a malicious connection is detected or kicked:
# In plugins/ZGuard-Pro/modules/discord.yml:
enabled: true
webhook-url: "https://discord.com/api/webhooks/YOUR_CHANNEL/YOUR_TOKEN"
7. PlaceholderAPI Placeholders (ZGuard Pro)
If you have PlaceholderAPI installed, you can use these placeholders in scoreboards, tablists, or holograms:
8. FAQ & Troubleshooting
Does it work with GeyserMC / Floodgate (Bedrock)?
Yes. Bedrock players join with their router's public IP. If they are not using a VPN, they connect normally.
What happens if the Zplugins website is under maintenance?
ZGuard Pro continues protecting your server using the local reputation cache and your local module rules without interrupting legitimate players.
Why do all players show up with IP 127.0.0.1?
If you use Velocity, BungeeCord, or Waterfall, make sure to enable bungeecord: true in your spigot.yml or velocity.enabled: true in paper-global.yml so the proxy forwards the player's real IP.