I have to implement an internal API for a website which is called with jQuery ajax. It returns data on JSON.
The catch: it should only throw data when it is called from the same website. I'm assuming that an IP won't work because it is called with javascript on the client side.
For example, if someone tries to call the json url from another domain, it should throw a error message.
Any ideas?