You could do a check to see if the Server is valid by checking against the Server List API and utilizing Game.JobId to uniquely identify each Server Instance
Replace PlaceId and you’ll need to be authenticated on ROBLOX to access the API. Checking against this API is what I personally do with my bot to ensure a server is valid + additional authentication.
It helps because it’s unique, and you can validate authenticy of the server by checking it against ROBLOX itself. This ensures the Server isn’t being spoofed when utilizing your APIs.
edit:
You can also use this to check to see if the Server is still active every so often, further preventing spoofing incase of an attempt to spoof an old ServerJobId.