· 6 years ago · Feb 28, 2020, 01:46 PM
1#
2# ███████╗██████╗ ██╗ ██████╗ ██████╗ ██╗ ██╗ █████╗ ██████╗ ██████╗
3# ██╔════╝██╔══██╗██║██╔════╝██╔════╝ ██║ ██║██╔══██╗██╔══██╗██╔══██╗
4# █████╗ ██████╔╝██║██║ ██║ ███╗██║ ██║███████║██████╔╝██║ ██║
5# ██╔══╝ ██╔═══╝ ██║██║ ██║ ██║██║ ██║██╔══██║██╔══██╗██║ ██║
6# ███████╗██║ ██║╚██████╗╚██████╔╝╚██████╔╝██║ ██║██║ ██║██████╔╝
7# ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝
8#
9# Thank you for downloading my plugin!
10# SpigotMC Link: https://www.spigotmc.org/resources/%E2%9C%A9-epicguard-1-8-1-14-antibot-antivpn-proxy-spigot-bungeecord-staff-protection-tools-%E2%9C%A9.72369/
11# My Discord: PolskiStevek#2198
12# Use this plugin also on spigot servers, for more features!
13
14###############################
15## Countries ##
16###############################
17
18countries:
19 # This has three values:
20 # WHITELIST = countries listed below CAN join, every other can't.
21 # BLACKLIST = countries listed below CAN'T join, every other can.
22 # DISABLED = disable this module.
23 mode: WHITELIST
24 # List of country codes:
25 # https://dev.maxmind.com/geoip/legacy/codes/iso3166/
26 list:
27 - CZ
28 - SK
29
30###############################
31## AntiBot ##
32###############################
33
34antibot:
35 # You can fuly disable ALL antibot modules if you don't want it.
36 # Disabling antibot will not disable country checking (look above)
37 enabled: true
38 # New players will need to rejoin server to play!
39 force-rejoin: true
40 # If a player/bot's nickname contains one of the values below, he will be blocked.
41 # This SHOULD be lower-case
42 name-contains:
43 - mcstorm
44 - mcspam
45 - bot
46 - proxy
47 # HIGHLY RECOMMENDED: Register on https://proxycheck.io/dashboard and get a free API KEY!
48 # Then replace the URL "http://proxycheck.io/v2/{IP}&vpn=1" to this:
49 # "http://proxycheck.io/v2/{IP}?key=API_KEY&vpn=1"
50 checkers:
51 '1':
52 adress: "http://proxycheck.io/v2/{IP}&vpn=1"
53 '2':
54 adress: "http://www.stopforumspam.com/api?ip={IP}"
55 '3':
56 adress: "https://ip.teoh.io/{IP}"
57 # What should the return message of each page contain?
58 responses:
59 - "yes"
60 - "true"
61 - "Bad"
62
63###############################
64## Advanced ##
65###############################
66# You SHOULD configure it, to fit your server's player amount.
67# If you have small server, don't change it, or change it to smaller values
68
69speed:
70 # How many connections per second should be made, to block connections to the server.
71 # Whitelisted players still can join, if CPS is below this value, connection blocking will be disabled.
72 # If deny-join is triggered, Proxy/VPN checking is skipped.
73 connection: 5
74 # How many pings per second should be made to block connections to the server.
75 ping-speed: 15
76
77###############################
78## Firewall ##
79###############################
80
81firewall:
82 # Don't use on free / shared hosting!
83 # You need private machine with IPTables (or something else) installed.
84 enabled: false
85 # Executed in /guard blacklist <player> OR while player was detected as a BOT
86 command-blacklist: "iptables -A INPUT -s {IP} -j DROP"
87 # Executed in /guard whitelist <player>
88 command-whitelist: "iptables -D INPUT -s {IP} -j DROP"