question

battlepolygon avatar image
battlepolygon asked

How to get all banned ip addresses

How to get all banned ip addresses .

And close access to registration in the game.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JayZuo avatar image
JayZuo answered

Currently, PlayFab does not have an API to get all banned players. Thus, there is no good way to get all banned IP addresses. If your game is still in development, you can use Segments and Tags to get all banned players. For example, you can call AddPlayerTag (e.g. "banned") every time you ban a player. In Segments, you need to config a filter rule like “tags” is “banned(you defined)” to categorize banned users. Then call GetPlayersInSegment to retrieve your ban list. Once you have all banned players, you can then call GetUserBans against these players to get all banned IP addresses.

Besides, please feel free to post an idea in our forums. If there is an API can get all bans then it will be very easy for you to get all banned IP addresses.

For your second question, if you want to close access to registration in the game, you can update your game client to remove all registration entrances. In most case this is enough, but players can still bypass this restriction with sending http request directly. If you do want to make sure no one can register a new account, you will need to use API access policy to deny all Login and Register APIs under Authentication except LoginWithPlayFab and LoginWithEmailAddress as these two API do not permit the creation of new accounts via the CreateAccount flag.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.