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
  • 125,519
  • 44
  • 317
  • 399
Jms Bnd
  • 1,173
  • 3
  • 12
  • 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