question

8floorltd avatar image
8floorltd asked

issue with cheaters spamming cloudscript

Hello!

We are experiencing an issue with cheaters spamming cloudscript requests to playfab servers and getting unwarranted amount of items,

We've tried to set a cooldown for this script by writing the last script call time to the player data, but that doesn't work because spammed scripts are executed in parallel and by the time 1st script is done writing it's time, most of the other scripts have already read the previous data and concluded that it's safe to continue.

Do you have any functionality or suggestions on how to combat this behavior?

Thanks!

CloudScript
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

·
Infer Wang avatar image
Infer Wang answered

I recommend the Azure Function, which has the queue trigger that can set the execution order. You can set the batch size to 1, which eliminates concurrency only so long as your function app runs on a single virtual machine (VM). Then you can just use the last script call time to judge whether this call is normal. Also you can ban the cheaters. Write banned list into title news as a warning.

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.