IP Ban

Options
Hello, I'm currently working on a ban system for my game. It works this way: There's a list of banned players, when the player logins it checks if that username is banned or not, if is not banned it will connect to photon, else it will not. The problem is I can't seem to find anything that can get the player's IP with Photon. So, each user has a IP, if the username is banned, it's IP will be banned, this to prevent players from making different accounts. Is this even possible? or it's only possible through PHP?

Comments

  • Tobias
    Options
    IP Addresses are not assigned per user, so banning users via IP is maybe not what you want to do. They might simply restart their modem and get a new one.
    If you wanted to do this, you would have to get the public IP client side and then send it along with the other data to the Custom Authentication service. There you could deny access to Photon.
    Custom Auth is described here:
    http://doc.exitgames.com/en/pun/current ... entication