How do I secure web services when using JSON via JQuery?
1 answer
Make sure the requestor:
- HTTP_REFERER is installed on your site; and
- a valid cookie for your site.
This will prevent behavior that most closely resembles hotlinking. However, if the site uses the HTTP library to consume your web service and it is publicly available, there is not much you can do outside of IP throttling and similar techniques.
+3
source to share