Is it possible to limit where a rest service is visible? I want a service only visible when displayed on my site and don't want it visible on any other site.
I have seen examples of controlling which website can use a service based on ArcGIS | Online and registering apps (websites) in ArcGIS for Developers. Hopefully somebody else can tell us more.
It is possible to disable the REST endpoint, so no one can use the service URLs unless they know them or have access to the server manager endpoint.
Please check out the following documentation on how to do this:
Disabling the Services Directory
Retrieving data ...