You could make a server name check/something that your server has that others don't have and if it's not the same/does not exist it stops the server, then add it to the main file of the resource you want to protect.
Don't forget to compile the script then, otherwise there would be no need for that cuz everybody could delete that.