Hello everyone, Is there a way to avoid a malicio...
# support
d
Hello everyone, Is there a way to avoid a malicious user for calling the RudderStack API directly and faking events? For example, on a mobile and web application, I’m reporting an event that tracks when a user plays an audio item, to latter count the top 10 played audios, and give a price to the creator of these audios. What would prevent a user from calling the RudderStack API directly to increase his/her numbers? I ask this, since the ruder stack write key must be set on the client side for reporting from a web or mobile application, exposing it to the outer world.
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
h
Nothing would stop that, nothing would stop a server side api call being used either. It is upto you to detect fraudulent messages - probably via your data warehouse where you can track who did what when and look for suspicious activity etc
g
You can protect agains anonymouse users directly hitting the api by using some proxy in the middle that does auth But protecting against your own users randomly calling the api to infliate some numbers - Don't think there's anything you can do. Rate limiting perhaps...
h
I was assuming they were signed in users so an api call would have auth if replied
m
I agree with Redsquare, there is nothing stopping your users from doing that and hence the best way is to do fraud detection at the warehouse.
d
I also thought about having a proxy in the middle, but an authenticated user could still try to inflate the numbers, like you guys said. I’ll look on how to detect fraudulent message at the warehouse, and review some rate limiting options, thank you very much.
👍 2
m
Thanks Carlos :)