I'm looking at Segment's documentation right now and they have something called a "write key" that you include in your client-side JavaScript in order to send analytics data to the backend. If I include Segment in my website, what stops one of my customers from copying my write key and sending spoofed "analytics" data to my backend? If nothing is stopping them from doing this, then what can I do on the server to detect such bad behavior?
I'm trying to understand what server-side controls I may need to implement in order to prevent bad actors from sending bad telemetry to my service.