What am I trying to do?
I am wanting to get the the script a remote is called from.
1 Like
You can’t get a reference to the script a remote is called from (unless you pass that as a parameter to the remote somehow, but why in the world would you do that?). In either case, an exploiter has full control of their client, so any request they make can be spoofed to be exactly the parameters that make it pass whatever reference check you put on the server.
You should not waste time on weird security hacks like this. Server-sided checks, server-sided checks, server-sided checks, and server authorization. They are the only things worth spending your time on preventing exploits (and not just worth, but pretty much a necessity).
10 Likes