Announcement

Collapse
No announcement yet.

Ip bans

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    GAMEMODE Ip bans

    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.
    Game Developer @ Onset RP // Early Access tester // Wiki Contributor

    #2
    Does returning false in this global deny the client from connecting?

    Comment


      #3
      Originally posted by sl0th View Post
      Does returning false in this global deny the client from connecting?
      I explicitly state it in the thread, yes. It does stop.
      Game Developer @ Onset RP // Early Access tester // Wiki Contributor

      Comment

      Working...
      X