Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ▀█████████▄ ▄██████▄ ███ ▄████████ ▄████████ ███▄▄▄▄ ███ ▄████████ ▄██ ▄
- # ███ ███ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███▀▀▀██▄ ▀█████████▄ ███ ███ ███ ██▄
- # ███ ███ ███ ███ ▀███▀▀██ ███ █▀ ███ █▀ ███ ███ ▀███▀▀██ ███ ███ ███▄▄▄███
- # ▄███▄▄▄██▀ ███ ███ ███ ▀ ███ ▄███▄▄▄ ███ ███ ███ ▀ ▄███▄▄▄▄██▀ ▀▀▀▀▀▀███
- # ▀▀███▀▀▀██▄ ███ ███ ███ ▀███████████ ▀▀███▀▀▀ ███ ███ ███ ▀▀███▀▀▀▀▀ ▄██ ███
- # ███ ██▄ ███ ███ ███ ███ ███ █▄ ███ ███ ███ ▀███████████ ███ ███
- # ███ ███ ███ ███ ███ ▄█ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
- # ▄█████████▀ ▀██████▀ ▄████▀ ▄████████▀ ██████████ ▀█ █▀ ▄████▀ ███ ███ ▀█████▀
- # ███ ███
- # ___ _________________ ___ ___ ________ ____ __ _____
- # / _ \/ _/ __/ ___/ __ \/ _ \/ _ \ / ___/ _ \/ __ \/ / / / _ \
- # / // // /_\ \/ /__/ /_/ / , _/ // / / (_ / , _/ /_/ / /_/ / ___/
- # /____/___/___/\___/\____/_/|_/____/ \___/_/|_|\____/\____/_/
- #
- # Join to receive SUPPORT.
- # https://discord.gg/kcKUPgN
- #
- #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
- # __ __ _ _ ____ _____ ____ ___ _ _ _____ ___ ____ _ _ ____ _ _____ _____ #
- # | \/ | | | / ___|_ _| / ___/ _ \| \ | | ___|_ _/ ___| | | | _ \ / \|_ _| ____| #
- # | |\/| | | | \___ \ | | | | | | | | \| | |_ | | | _| | | | |_) | / _ \ | | | _| #
- # | | | | |_| |___) || | | |__| |_| | |\ | _| | | |_| | |_| | _ < / ___ \| | | |___ #
- # |_| |_|\___/|____/ |_| \____\___/|_| \_|_| |___\____|\___/|_| \_/_/ \_|_| |_____| #
- # #
- # You HAVE TO configurate this part if you want BotSentry to work fine. #
- # #
- #-♛-«««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
- # The name of your server(s) where players do /login and /register commands.
- # Posible question: Where can i find the name of those servers?
- # Answer: https://i.imgur.com/Q1rjmJy.png
- auth-lobby:
- - "Lobby" # This line is ALWAYS needed to be configurated
- #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
- # ____ ___ _ _ _____ ___ ____ _ _ ____ _ ____ _ _____ #
- # / ___/ _ \| \ | | ___|_ _/ ___| | | | _ \ / \ | __ )| | | ____| #
- # | | | | | | \| | |_ | | | _| | | | |_) | / _ \ | _ \| | | _| #
- # | |__| |_| | |\ | _| | | |_| | |_| | _ < / ___ \| |_) | |___| |___ #
- # \____\___/|_| \_|_| |___\____|\___/|_| \_/_/ \_|____/|_____|_____| #
- # #
- # You can configurate this values, but, BE CAREFUL! #
- # Make sure that you understand what you are changing! #
- # #
- #-♛-«««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
- # Define that if in X seconds, Y connections are established, it will enable the AntiBot mode.
- # You can also change the duration and ActionBar message.
- antibot-mode:
- seconds: 2
- connections: 10
- duration: 300
- activated-msg: "&a&lAntiBot mode activated."
- deactivated-msg: "&c&lAntiBot mode deactivated."
- # Configure when an IP should be Banned using the method specified below
- # based on their Number of connections per X seconds.
- # Format: "Connections;Seconds"
- # You can add more conditions in the same format
- thresholds:
- - "16;60" # If 16 connections from the IP in 60 seconds, ban.
- - "30;60" # If 31 connections from the IP in 60 seconds, ban.
- - "60;120" # If 61 connections from the IP in 120 seconds, ban.
- - "75;140" # If 76 connections from the IP in 141 seconds, ban.
- - "100;200" # If 101 connections from the IP in 201 seconds, ban.
- # If one of the above criteria is met, then the rate limiter kicks in.
- ratelimit:
- enabled: true
- # Should BotSentry ban the bot?
- ban: false
- # If set to true (recommended) the bans will be handled internally to the plugin (local cache and blacklist file)
- # This is intended for a quick solution to huge bot attacks or if you don't have access to linux commands through the server.
- local-blacklist-only: false
- # The LINUX command that will be executed to ban IP addresses internally.
- ban-command: "echo DETECTED {ip} AS A BOT >> NOT BANNING"
- # The LINUX command that will be executed to unban IP addresses internally.
- unban-command: "echo FALSE-UNBANNING {ip} >> HE WAS NOT REALLY BANNED"
- # Change the delay between unban of each IP (in milliseconds, recommended not to touch)
- unban-delay: 75
- # Every how many hours should the plugin unban all banned IPs?
- reset-banned-hrs: 1
- #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
- # __ __ ______ _____ _____ _____ ______ _____ #
- # | \/ | ____|/ ____/ ____| /\ / ____| ____|/ ____| #
- # | \ / | |__ | (___| (___ / \ | | __| |__ | (___ #
- # | |\/| | __| \___ \\___ \ / /\ \| | |_ | __| \___ \ #
- # | | | | |____ ____) |___) / ____ \ |__| | |____ ____) | #
- # |_| |_|______|_____/_____/_/ \_\_____|______|_____/ #
- # #
- # In this section you can change all the messages #
- # that will be displayed to players or to you. #
- # #
- #-♛-««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
- # Section related to actionbar messages - "botsentry.advice" permission.
- actionbar:
- # Toggle actionbar notification to admins.
- enabled: true
- msg: "&8[&a{ip}&8] &7has been detected as a &cBOT"
- challenge: "&8[&a{username}&8] &7got kicked for &cCHALLENGE"
- challenge-fail: "&8[&a{username}&8] &chas failed &cCHALLENGE"
- challenge-success: "&8[&a{username}&8] &ahas passed &cCHALLENGE"
- first-join: "&8[&a{username}&8] &7has been kicked for &cFIRST JOIN"
- rejoin: "&8[&a{username}&8] &7has been kicked for &cREJOIN"
- rejoin-success: "&8[&a{username}&8] &7rejoined &aSUCCESSFULLY"
- whitelist: "&8[&a{username}&8] &7joined, he is in the &aWHITELIST"
- whitelisted: "&8[&a{username}&8] &7has been &aWHITELISTED"
- label: "&8[&a{username}&8] &7got kicked for &cLABEL"
- pattern: "&8[&a{username}&8] &7got kicked for &cPATTERN"
- collection: "&8[&a{username}&8] &7got kicked for &cCOLLECTION"
- consistency: "&8[&a{username}&8] &7got kicked for &cCONSISTENCY"
- collection-active: "&a&lCOLLECTION ENABLED"
- consistency-active: "&a&lCONSISTENCY ENABLED"
- # Section related to title message - "botsentry.advice" permission - sent every 10 seconds during an attack.
- title:
- enabled: true
- title: "&c&lBot Sentry"
- subtitle: "&e&l{num} &6&lbots IPTables banned in 10 seconds!"
- # The message that is shown every connection to the console.
- console-message: "&cBotSentry &7>> &7[&e{ip}&7] [&a{nickname}&7] &6has connected! &7[&eNum. {count}&7]"
- # Plugin messages sent to players.
- msg:
- challenge:
- kick-message: "&cWe're under attack, please, complete this steps to join:\n\n {challenges}"
- ping: "&a&lSTEP {number}&7: \n&eRefresh ONE time the server list and join."
- join: "&a&lPASO {number}&7: \n&eJoin the server WITHOUT refreshing the server list."
- final-join: "&a&lFINAL CHALLENGE&7: \n&aJoin again WITHOUT refreshing the server list to PLAY."
- deny-banned-ip: "&cYou got detected as a BOT, contact a STAFF to fix this problem."
- kick: "&6&l[BotSentry] &6You have been detected as a &c&lBOT&6! \n &7Do you think it is an error? \n &7Contact us on Twitter! \n &btwitter.com/ServerTwitter"
- unbanning: "&aUnbanning IP addresses (this could take a while)..."
- unbanned: "&aUnbanned {count} IP addresses."
- reloaded: "&aPlugin reloaded."
- insufficient-permissions: "&cInsufficient permissions."
- ip-banned: "&aSuccessfully banned IP address."
- banning-via-firewall: "&4BotSentry &7>> &aUsing Linux ban command: &b{ip} &7- &aThreshold: &b{threshold}"
- toggled-notifications: "&aActionbar and title notifications turned {status}."
- help: "&6&m--------------&c &lBOT SENTRY HELP &6&m--------------\n
- &b \n
- &9Aliases: &b/bs &7& &b/botsentry\n
- &b \n
- &7/bs advice &8> &eReceive actionbar notifications ingame\n
- &7/bs stats &8> &eSee the total banned bots in life period\n
- &7/bs ban &a{IP} &8> &eBan the specified IP via IPTables\n
- &7/bs unban &a{IP} &8> &eUnban the specified IP via IPTables\n
- &7/bs unban &aall &8> &eUnban all banned IPs via IPTables\n
- &7/bs amode &aon/off &8> &eToggle the AntiBotMode\n
- &7/bs details &8> &eGet info about the plugin\n
- &b \n
- &6&m-----------------------------------------------"
- #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
- # ____ _______ _______ _ ___ ____ _____ ____ __ ___ _ _ _ _____ ____ #
- # | _ \| ____\ \ / | ____| | / _ \| _ \| ____| _ \ \ \ / / \ | | | | | | ____/ ___| #
- # | | | | _| \ \ / /| _| | | | | | | |_) | _| | |_) | \ \ / / _ \ | | | | | | _| \___ \ #
- # | |_| | |___ \ V / | |___| |__| |_| | __/| |___| _ < \ V / ___ \| |__| |_| | |___ ___) | #
- # |____/|_____| \_/ |_____|_____\___/|_| |_____|_| \_\ \_/_/ \_|_____\___/|_____|____/ #
- # #
- # Touching this values is NOT RECOMMENDED, this part is just understood by the Developer! #
- # This values can be critical and changing one number can break the entire plugin! #
- # ASK FOR SUPPORT BEFORE TOUCHING THIS VALUES! #
- # DISCORD GROUP: #
- # https://discord.gg/kcKUPgN #
- # #
- #-♛-««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
- # The first join check will ask, during a bot attack, all new players to rejoin.
- # The kick message will be displayed once ONLY for NEW players.
- # Disabled by default
- first-join:
- enabled: false
- time: 5000
- kick-message: "&cHey there!&7, &cwait &6{seconds} seconds &cto join again."
- whitelist:
- # After N seconds of playtime, the player is added to the BotSentry whitelist, and not checked anymore.
- seconds-to-play: 120
- # This check will limit how many players can play with the same IP address during an attack and not.
- max-address:
- # Toggle the check
- enabled: true
- threshold:
- # Max ip addresses that are allowed to play in normal conditions
- normal: 3
- # Max ip addresses that are allowed to play during a bot attack
- antibotmode: 1
- # The following section will check all incoming connections in order to determine wheter a number of connection could be
- # considered as bot attack (similar to "AntiBotMode").
- networking:
- # This value should be related to the average players' latency. We suggest to leave this as 45, and playing with
- # leniency option. This value should never be changed with values over "52".
- tolerance: 50
- trigger: 2
- leniency: 1.26
- # This section is related to BotSentry checks and algorithms configuration.
- # You basically don't need to understand the following, as it could result difficult or not clear.
- #
- # The default settings are set in order to define whether a client is a BOT or a clean USER.
- # BotSentry uses the following to tune-up the detection, please keep those values updated with feature
- # releases of the plugin.
- #
- # If you encounter difficulties or problems with bot attacks, please contact the developer on Discord (preferred).
- bot-behaviour:
- # The pattern check is enabled when the server starts, it is intended to learn the behaviour of clients and easily
- # detecting when a bot attack occurs (in combo with anti-bot-mode). When an attack occurs, this check will be able
- # to easily differentiate bots from clean users.
- pattern:
- enabled: true
- tolerance: 12000
- tolerance-b: 900000
- # Section related to caching some data to improve performances.
- # Do not edit this if not asked by the developer.
- cache:
- enabled: true
- max-amount: 50
- # This value should never be more than 3500. If you encounter false positives, please contact developers before
- # playing with this value.
- min-value: 2500
- # This section is intended to check, during a bot attack, the number of new connections and compare them with a
- # previous recorded "normal-behaviour"
- # By default this is disabled as bot-behaviour.pattern is doing all of the needed calculations to avoid bots join.
- consistency:
- enabled: false
- count: 20
- delta: 11
- # The following should be enabled when "consistency" is enabled too, it compares the previous data over a long period
- # and adds some leniency in order to avoid false positives.
- collection:
- enabled: false
- count: 21
- leniency: 10
- delay: 2000
- # Do you want to kick bots from the specified authlobby after banning them via IPTables?
- # We suggest to leave this as true, mainly because after blocking an address via firewall, the related connections
- # will remain open for some time.
- kick-authlobby: true
- # ▄████████ ███▄▄▄▄ ████████▄
- # ███ ███ ███▀▀▀██▄ ███ ▀███
- # ███ █▀ ███ ███ ███ ███
- # ▄███▄▄▄ ███ ███ ███ ███
- # ▀▀███▀▀▀ ███ ███ ███ ███
- # ███ █▄ ███ ███ ███ ███
- # ███ ███ ███ ███ ███ ▄███
- # ██████████ ▀█ █▀ ████████▀
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement