Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • LiveOps /
avatar image
Question by tahirgdzyn · Nov 29, 2021 at 01:18 AM ·

Massive limit costs due to attack

How does playfab handle limits being breached due to obvious attacks?

I know it was mentioned somewhere that playfab will make attempts to limit actions based on IP but I'm seeing things like:

> 55k logins from one ip in 24 hours

> 88k entity events

While I understand I should limit unused API, sometimes you cant know whats missed until it happens. Also a lot of the docs arent quite clear as to how to limit stuff, for example, I made use of UpdatePolicy to do:

Resource = "pfrn:api--/Client/WriteEvents"

It returns success, yet shortly after, I'm still being warned about exceeding limits?

Whom do I speak with regarding billing?

Thanks for your time.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Gosen Gao · Nov 29, 2021 at 09:48 AM

PlayFab limit the client requests based on IP address, the limit is 100 calls per 2 minutes. Although “55k logins in 24 hours” is an obvious anomaly, but it is not exceed the limit(about 72k requests in 24 hours). You should analyse the events data to figure out whether it is caused by a script or not. Because the case can be similar if players are using VPN service. You can ban the IP address with API BanUsers to stop the attack if you find that it was caused by script. Please note that If you ban an IP of a service(rely server) may cause massive reports from the customers. You should be very careful doing this.

As for events, the ApiPolicy can’t restrict the entity APIs, the WriteEvents is one of them. Besides, some actions will generate events automatically, such as login. So part of “88k entity events” should be generated by login. It can be reduced by banning the IP.

Regarding billing questions, you can submit a request via Contact us.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tahirgdzyn · Nov 29, 2021 at 12:05 PM -1
Share

Is it possible to find out playfabid's that make a certain api call using the data analyzer?

avatar image Gosen Gao tahirgdzyn · Nov 30, 2021 at 07:16 AM 0
Share

You can filter the Events based on the EventName and PlayFabId in the Data Explorer to do that, please note that the events and APIs are not one-to-one. If you want to record events about a specific API, you can create custom events to implement it. Here is the built-in events list, you can have a look.

I think you should also check the login method to see if the custom ID has a regular pattern.

Here is a sample for your reference.

['events.all']

| where FullName_Name == "player_logged_in"

| where Entity_Id == "D85738AD34F5F820"

| sortby Timestamp

For more information about Data Explorer(Advanced mode), please refer to Getting started with Data Explorer advanced mode.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges