IP banning in-game

You will need to add logic to where your game initially starts a new incoming network connection. If the ip is in the ban list then you can return a response with a message that the ip is banned, the drop the connection.