awumii / EpicGuard

🛡 Bot protection system for Minecraft servers. | Outdated, use: https://github.com/4drian3d/EpicGuard
GNU General Public License v3.0
93 stars 22 forks source link

proxy-check not working on Velocity #116

Closed Dagrond closed 3 years ago

Dagrond commented 3 years ago

Velocity 3.0.1, Epicguard 7.0.1 I have provided valid API key for proxycheck.io and changed check-mode to ALWAYS. But the EpicGuard doesn't send requests to proxycheck.io. Any new user can join on VPN, and the "queries today" on proxycheck.io is always 0. My config:

proxy-check {
    # How long in SECONDS responses from proxy check should be cached?
    # Higher value increases performance, but keep in mind that if user
    # disables their VPN but the cache hasn't expired yet, he will still be detected.
    cache-duration=300
    # NEVER - check is disabled.
    # ATTACK - check will be performed only during bot-attack.
    # ALWAYS - check will be always performed.
    check-mode=ALWAYS
    # You can set as many proxy checking services as you want here.
    # If you're not familiar with regex, see https://regexr.com/
    # For example, (yes|proxy) will check if the response contains either 'yes' or 'proxy'
    services=[
        {
            responseRegex="(yes)"
            url="https://proxycheck.io/v2/{IP}?key=I_HAVE_VALID_KEY_HERE&risk=1&vpn=1"
        }
    ]
}

When I manuallly go to site https://proxycheck.io/v2/MY_IP_FROM_PROXY?key=I_HAVE_VALID_KEY_HERE&risk=1&vpn=1, the proxy is detected. So proxycheck is working, epicguard is not.

Dagrond commented 3 years ago

Fixed in new commit.