Hey,
Ip bans is a snippet of code which you can implement in your server to stop players from joining our server completely. I made this by utilizing OnClientConnectionRequest event, and doing a range check for their IP in the database and then returning false under the event which stops them from connecting to your server completely.
However, please note that a player might be able to abuse it and hang your server if they do a spam of events since we run a mariadb await query which pauses the server thread until the response from the database is received, however this shouldn't be possible to do as the game won't ever possibly let them do it.
Link: https://gist.github.com/AliLogic/06e...305d5677b126f0
Feel free to ask anything about if you're curious.
Ip bans is a snippet of code which you can implement in your server to stop players from joining our server completely. I made this by utilizing OnClientConnectionRequest event, and doing a range check for their IP in the database and then returning false under the event which stops them from connecting to your server completely.
However, please note that a player might be able to abuse it and hang your server if they do a spam of events since we run a mariadb await query which pauses the server thread until the response from the database is received, however this shouldn't be possible to do as the game won't ever possibly let them do it.
Link: https://gist.github.com/AliLogic/06e...305d5677b126f0
Feel free to ask anything about if you're curious.
Comment