Anti-VPN 3.5.22

Get the best; save money on overpriced plugins and block VPN users!

  1. egg82
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Source Code:
    https://github.com/egg82/AntiVPN
    antivpn.png

    Looking for the Bungee version?
    Find it here!

    playeripapi-installation-tab.png
    Wiki
    Installation instructions can be found on the wiki here. It it highly recommended to read the wiki.

    playeripapi-config-tab.png
    Confused? Check the wiki!
    Code (Text):
    # How the plugin stores long-term data
    storage:
      # The storage method
      #
      # Options:
      # - MySQL (remote)
      # - SQLite (local)
      method: 'sqlite'

      data:
        # Address and port of the remote database (if applicable)
        address: '127.0.0.1:3306'
        # The name of the database Anti-VPN will store data in
        # If you're using remote options, this must be created beforehand
        database: 'avpn'
        # Table prefix for all Anti-VPN tables
        prefix: 'antivpn_'
        # Database credentials (if applicable)
        username: ''
        password: ''
        # Whether or not to use SSL
        ssl: false

        # MongoDB options- obviously don't need to worry about these if not using MongoDB ;)
        mongodb:
          # Connection prefix for all Anti-VPN connections
          collection-prefix: ''
          # MongoDB ClientConnectionURI
          connection-uri: ''

      settings:
        # The maximum size of the database connection pool
        # Determines the max number of connections to the database
        max-pool-size: 2
        # The minimum size of the satabase connection pool
        # Determines the min number of connections kept alive to the database
        min-idle: 2
        # The maximum lifetime of a connection in the pool
        # Should be at least 30 seconds less than any database or infrastructure-imposed connection time limit
        max-lifetime: 1800000 # 30 minutes
        # The maximum number of milliseconds that the plugin will wait for a new connection from the pool before timing out
        timeout: 5000 # 5 seconds

        # Extra connection properties
        properties:
          unicode: true
          encoding: 'utf8'

    # Redis is a very fast cache accessible by multiple servers
    # If you don't want to constantly hit your database for queries, try enabling and configuring this
    # You will need to install the (external) Redis server software if you haven't already
    # https://redis.io/
    redis:
      enabled: false
      # Address and port of the remote Redis server
      address: '127.0.0.1:6379'
      # Redis credentials
      password: ''

    # RabbitMQ is a messaging queue that will allow the plugin to push instant updates across multiple servers
    # You will need to install the (external) RabbitMQ server software if you haven't already
    # https://www.rabbitmq.com/
    rabbitmq:
      enabled: false
      # Address and port of the remote RabbitMQ server
      address: '127.0.0.1:5672'
      # RabbitMQ credentials
      username: 'guest'
      password: 'guest'

    # Where VPN-checking sources are defined
    # Beware the more sources that are included (and fail) the worse the performance and the more the lag
    sources:
      # The amount of time to globally cache results across all sources
      # This should be as high as possible to avoid rate-limits but as low as possible to ensure results are always up-to-date and accurate
      cacheTime: '6hours'

      # The order to try results in
      order:
      - 'iphub'
      - 'proxycheck'
      - 'getipintel'
      - 'ipqualityscore'
      - 'vpnblocker'
      - 'voxprox'
      - 'shodan'

      # https://iphub.info/
      # Results updated Sep 6, 2018
      # Error rate: 0%
      # NordVPN detection rate: 90.48%
      # Cryptostorm detection rate: 90%
      # False-flagged homes: 20%
      iphub:
        enabled: false
        # API key to use (Required for this service, free one available at https://iphub.info/apiKey/newFree )
        key: ''
        # The block type at which an IP is considered "bad"
        block: 1

      # https://proxycheck.io
      # Results updated Sep 6, 2018
      # Error rate: 5%
      # NordVPN detection rate: 85.71%
      # Cryptostorm detection rate: 94.74%
      # False-flagged homes: 10%
      proxycheck:
        enabled: true
        # Optional API key to use
        key: ''

      # https://www.getipintel.net/
      # Results updated Sep 6, 2018
      # Error rate: 5%
      # NordVPN detection rate: 90.48%
      # Cryptostorm detection rate: 100%
      # False-flagged homes: 40%
      getipintel:
        enabled: true
        # Contact e-mail in case things go wrong. Required
        contact: '[email protected]'
        # Threshold above which an IP is considered "bad"
        threshold: 0.98

      # https://www.ipqualityscore.com/
      # Results updated Sep 6, 2018
      # Error rate: 0%
      # NordVPN detection rate: 90.48%
      # Cryptostorm detection rate: 85%
      # False-flagged homes: 40%
      ipqualityscore:
        enabled: false
        # API key to use (Required for this service, free one available at https://www.ipqualityscore.com/create-account )
        key: ''
        # Threshold above which an IP is considered "bad"
        threshold: 0.65

      # https://vpnblocker.net/usage
      # Error rate: 0%
      # NordVPN detection rate: 66.67%
      # Cryptostorm detection rate: 70%
      # False-flagged homes: 10%
      vpnblocker:
        enabled: true
        # Optional API key to use
        key: ''

      # https://www.voxprox.com
      # Error rate: 0%
      # NordVPN detection rate: 66.67%
      # Cryptostorm detection rate: 70%
      # False-flagged homes: 40%
      voxprox:
        enabled: false
        # API key to use (Required for this service)
        key: ''

      # https://www.shodan.io/
      # Error rate: 94.52%
      # NordVPN detection rate: 89.47%
      # Cryptostorm detection rate: 0%
      # False-flagged homes: 0%
      shodan:
        enabled: false
        # API key to use (Required for this service)
        key: ''

    kick:
      # When true, will kick players found to be using VPNs
      # Disable this is you intend to use your own kicking/tagging systems using the API
      enabled: true
      # The message to kick VPN users with
      message: '&cPlease disconnect from your proxy or VPN before re-joining!'

      algorithm:
        # The algorithm method
        #
        # Options:
        # - Cascade
        #   The plugin will go down the "sources" list, sequentially, until a valid source is found
        #   It will then query that source and return the result
        #   This will result in essentially "the first valid result" being returned
        # - Consensus
        #   The plugin will try every source in the "sources" list at once
        #   It will then strip invalid results, and calculate the ratio of results from the remaining sources
        #   This will result in essentially "the ratio of valid results" being returned
        method: 'cascade'

        # Only used for "consensus" mode
        # The minimum ratio of APIs that must agree before a player is kicked
        # For example, if set to "0.6" then at least 60% of sources must agree that the IP is a VPN
        # The value can range from 0 to 1, and will be clipped at those values
        min-consensus: 0.6

      # IPs to ignore when checking for VPNs
      ignore:
      - '127.0.0.1'
      - 'localhost'
      - '::1'

    # The amount of time to cache lookups in-memory
    # Higher values require more memory
    # Lower values will hit Redis/SQL/APIs more frequently
    # Generally the default is good enough to prevent many sequential lookups from choking resources, but still keep memory usage low
    cacheTime: '1minute'
    # When true, logs some extra output to the console so you can see if/why things might be failing
    debug: false
    # The number of threads to use for web operations
    threads: 4

    stats:
      # Whether or not to send anonymous usage statistics to bStats
      # True: Send anonymous stats; let the author know how well the plugin is doing and how it's used!
      # False: Do not send stats and make the author sad :(
      usage: true
      # Whether or not to send anonymous errors to the author
      # True: Send errors anonymously to Rollbar and/or GameAnalytics so the author can fix them!
      # False: Do not send errors and wonder why any bugs you encounter haven't beeen fixed
      errors: true

    update:
      # Whether or not to automatically check for updates and notify the console if found
      check: true
      # Whether or not to notify players with the avpn.admin permission node
      notify: true

    # Config version, no touchy plz
    version: 3.5
    playeripapi-commands-tab.png
    /avpn reload - Reloads the plugin configuration. This will disconnect and reconnect (if appropriate) any services configured in the config.yml file.
    /avpn test <ip> - Test an IP through the various (enabled) services. Note that this forces a check so will use credits every time it's run.
    /avpn check <ip> - Check an IP using the default system. This will return exactly the same value as any other API call.
    /avpn score <source> - Scores a particular source based on a pre-made list of known good and bad IPs. Note that this forces a check so will use credits every time it's run.

    playeripapi-permissions-tab.png
    avpn.admin - allows access to the /avpn reload, /avpn test, /avpn check, and /avpn score commands
    avpn.bypass - players with this node bypass the filter entirely

    playeripapi-donations-tab.png
    Please consider donating to support this free plugin!
    PP_logo_h_150x38.png

    playeripapi-legal-tab.png
    According to the GDPR, you must specify that you are storing IP information to your players in a privacy policy when using this plugin (actually you need that if you're running a vanilla server without this plugin because of server logs). Depending on how data provided from this API is used, you may be required to manually remove some data from the databases.
    Disclaimer: I am a plugin developer, not a lawyer. This information is provided as a "best guess" and is not legal advice.

    playeripapi-api-tab.png
    API documentation can be found on the wiki here.

    stopforumspam
    Error rate: 0%
    NordVPN detection rate: 38.1%
    Cryptostorm detection rate: 10%
    False-flagged homes: 0%

    ip2proxy (no servers)
    Error rate: 0%
    NordVPN detection rate: 28.57%
    Cryptostorm detection rate: 10%
    False-flagged homes: 0%

    ip2proxy (servers)
    Error rate: 0%
    NordVPN detection rate: 28.57%
    Cryptostorm detection rate: 15%
    False-flagged homes: 0%
    Lazo and hou19960228 like this.

Recent Reviews

  1. GoroKun
    GoroKun
    5/5,
    Version: 3.5.22
    very nice plugin

    btw how to add enter in kick message?
    ________________________
    1. egg82
      Author's Response
      Thank you for the review!
      You can change the kick message in the config.yml :)
  2. QTheManiac
    QTheManiac
    5/5,
    Version: 3.5.20
    Neat plugin, detects most vpn's
    But for some reason its not kicking
    players with vpns's
    1. egg82
      Author's Response
      By default it will kick them, unless the config is changed. It won't perfectly detect every VPN, but uses consensus mode with enough services it should be very accurate.

      Try enabling debug mode in the config to see what may be going wrong/why it's not kicking players. If you still don't know, then send me the output and any errors in a PM and I'll take a look!

      Thank you for the review!
  3. tofonek
    tofonek
    3/5,
    Version: 3.5.18
    good plugin but in console this error:
    [20:15:21 ERROR]: Could not pass event AsyncPlayerPreLoginEvent to AntiVPN v3.5.18
    java.lang.NullPointerException
    at me.egg82.antivpn.apis.IPDetectorAPI.getResult(IPDetectorAPI.java:46) ~[?:?]
    at me.egg82.antivpn.services.InternalAPI.resultExpensive(InternalAPI.java:219) ~[?:?]
    at me.egg82.antivpn.services.InternalAPI.lambda$cascade$2(InternalAPI.java:96) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039) ~[?:?]
    at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853) ~[?:1.8.0_181]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:54) ~[?:?]
    at me.egg82.antivpn.services.InternalAPI.cascade(InternalAPI.java:96) ~[?:?]
    at me.egg82.antivpn.VPNAPI.cascade(VPNAPI.java:155) ~[?:?]
    at me.egg82.antivpn.VPNAPI.cascade(VPNAPI.java:133) ~[?:?]
    at me.egg82.antivpn.events.AsyncPlayerPreLoginCacheHandler.accept(AsyncPlayerPreLoginCacheHandler.java:50) ~[?:?]
    at me.egg82.antivpn.AntiVPN.lambda$loadEvents$13(AntiVPN.java:282) ~[?:?]
    at me.egg82.antivpn.external.ninja.egg82.events.SingleEventSubscriber.call(SingleEventSubscriber.java:96) ~[?:?]
    at me.egg82.antivpn.external.ninja.egg82.events.BukkitEventSubscriber.call(BukkitEventSubscriber.java:50) ~[?:?]
    at me.egg82.antivpn.external.ninja.egg82.events.BukkitEventSubscriber.lambda$new$0(BukkitEventSubscriber.java:31) ~[?:?]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[server.jar:git-Spigot-21fe707-e1ebe52]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [server.jar:git-Spigot-21fe707-e1ebe52]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.LoginListener$LoginHandler.fireEvents(LoginListener.java:248) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.LoginListener$2.run(LoginListener.java:172) [server.jar:git-Spigot-21fe707-e1ebe52]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
    [20:15:21 INFO]: UUID of player NolDys is 629f095a-01c0-3cb4-9936-f1aff96c87b6
    [20:15:22 ERROR]: Could not pass event PlayerLoginEvent to AntiVPN v3.5.18
    java.lang.NullPointerException
    at me.egg82.antivpn.apis.IPDetectorAPI.getResult(IPDetectorAPI.java:46) ~[?:?]
    at me.egg82.antivpn.services.InternalAPI.resultExpensive(InternalAPI.java:219) ~[?:?]
    at me.egg82.antivpn.services.InternalAPI.lambda$cascade$2(InternalAPI.java:96) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039) ~[?:?]
    at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853) ~[?:1.8.0_181]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112) ~[?:?]
    at me.egg82.antivpn.external.com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:54) ~[?:?]
    at me.egg82.antivpn.services.InternalAPI.cascade(InternalAPI.java:96) ~[?:?]
    at me.egg82.antivpn.VPNAPI.cascade(VPNAPI.java:155) ~[?:?]
    at me.egg82.antivpn.VPNAPI.cascade(VPNAPI.java:133) ~[?:?]
    at me.egg82.antivpn.events.PlayerLoginCheckHandler.accept(PlayerLoginCheckHandler.java:65) ~[?:?]
    at me.egg82.antivpn.AntiVPN.lambda$loadEvents$14(AntiVPN.java:283) ~[?:?]
    at me.egg82.antivpn.external.ninja.egg82.events.SingleEventSubscriber.call(SingleEventSubscriber.java:96) ~[?:?]
    at me.egg82.antivpn.external.ninja.egg82.events.BukkitEventSubscriber.call(BukkitEventSubscriber.java:50) ~[?:?]
    at me.egg82.antivpn.external.ninja.egg82.events.BukkitEventSubscriber.lambda$new$0(BukkitEventSubscriber.java:31) ~[?:?]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[server.jar:git-Spigot-21fe707-e1ebe52]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [server.jar:git-Spigot-21fe707-e1ebe52]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.PlayerList.attemptLogin(PlayerList.java:456) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:118) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:814) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-21fe707-e1ebe52]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
    [20:15:22 INFO]: Spravce NolDys se pripojil/a
    [20:15:22 INFO]: NolDys[/188.175.61.3:15158] logged in with entity id 826 at ([spawn]704.1413353606608, 4.0, -1040.1405930645697)
    [20:15:22 WARN]: [FirstJoinPlus] Task #3866 for FirstJoinPlus v2.4.1 generated an exception
    java.lang.IllegalArgumentException: No enum constant org.bukkit.Sound.ENTITY_PLAYER_LEVELUP
    at java.lang.Enum.valueOf(Enum.java:238) ~[?:1.8.0_181]
    at org.bukkit.Sound.valueOf(Sound.java:1) ~[server.jar:git-Spigot-21fe707-e1ebe52]
    at com.chaseoes.firstjoinplus.FirstJoinListener$1.run(FirstJoinListener.java:59) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[server.jar:git-Spigot-21fe707-e1ebe52]
    at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-21fe707-e1ebe52]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
    1. egg82
      Author's Response
      Thank you for the report, but please next time try the forums or the GitHub page :)
      Should be fixed in the next version.
  4. fcmadzer
    fcmadzer
    5/5,
    Version: 3.5.15
    10/10 plugin. Works perfectly and egg knows his stuff and is always willing to give support and he's very good at it.
    1. egg82
      Author's Response
      Thanks for the review!
  5. Gigorahk
    Gigorahk
    2/5,
    Version: 2.1.8
    It didn't work for me. I downloaded the version for 1.12.2 and my player was able to connect with a simple VPN. I drag installed it and it doesn't work for me. It showed up as a loaded plugin in my list.
    1. egg82
      Author's Response
      Thanks for the review!

      Since the plugin uses several APIs to determine whether or not a player is using a VPN you may want to check which services it's getting values from and dig into the config.yml to change those to fit your preferences. In general, I've found the ones provided by default seem to work well enough- but no single service is perfect.

      Try enabling debug mode in the config.yml to get more output into the console on what values it's fetching and where those values come from. Enable and disable services (or reorder them) to better fit your needs!

      By default, however, it should work in most cases.
  6. Antrox
    Antrox
    5/5,
    Version: 2.1.7
    Works perfectly, with an active developer that will solve your issues, very good 5/5 :D
    1. egg82
      Author's Response
      Thank you for the review! Glad I was able to help
  7. HexedHero
    HexedHero
    5/5,
    Version: 2.1.5
    Cool plugin but lacking a few features, such as alerts for staff when someone tries to login with a VPN and also a history command or file to show people that have tired using a vpn with username ip and time.
    1. egg82
      Author's Response
      Thanks for the review!

      Since the items you mentioned vary wildly depending on systems, admins, and plugins, I decided the best course of action was to instead include an API that plugin authors and server developers could hook into that would allow them to add any new features (or completely replace the automatic kick system with something else)

      Please give the API a shot and let me know how it works out for you! There's plenty of documentation on the plugin page as well as the GitHub repo.
  8. Gustavo_Player
    Gustavo_Player
    5/5,
    Version: 2.0.5
    Good! :D
    1. egg82
  9. Big_SmO_oke
    Big_SmO_oke
    5/5,
    Version: 1.0.2
    Good plugin, but it cannot be just installed on the BungeeCord, instead of installing this plugin on all servers and configure all on the same database? And it is having a rate limit? It prevent from proxies?
    1. egg82
      Author's Response
      Thanks for the review! I'll likely make a BungeeCord-specific version in the future, though for larger networks with multiple bungees they'll still want a shared database and/or Redis/Rabbit.

      The plugin itself uses the APIs configured in the config.yml file. The file allows you to specify what services to use and in what order, along with any API keys you may have for each service. The quality of such services is widely debated so I decided to offer choice.

      If you don't like a particular service or prefer one over another you can configure the plugin to use those particular services and prioritize them. The default setup, I've personally found, works well enough; however no service is 100% foolproof.
  10. Tlsslurp
    Tlsslurp
    5/5,
    Version: 1.0.0
    I am the developer of an anti-bot skript. I must say I love your resources look and functionality, and the customability. This is much better then most paid anti-VPNs. If you're looking to just block VPNs I high recommend this.
    1. egg82
      Author's Response
      Thanks for the review! The new version gives an option to automatically kick a VPN user so you can even write your own implementations using the API now.