0

I want to know if there is a way to limit my ajax results to just my domain? In order to prevent a person from just creating a script and calling the ajax url.

Most people have informed me that referrer should not be trusted.

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Jms Bnd
  • 1,213
  • 3
  • 13
  • 18
  • The answers here may answer your question: http://stackoverflow.com/questions/6347881/how-to-prevent-cross-domain-ajax-requests – Matt Browne Feb 24 '13 at 17:01
  • I would also agree with the poster who said that unless your page requires a login, there's no foolproof way to prevent its contents from being retrieved via AJAX. – Matt Browne Feb 24 '13 at 17:02

0 Answers0