title: how to prevent remote form posting in ajax?
body: <p>How can I limit my php file that I use in ajaxRequest.open to be accessed through specific pages?</p>
  
  <p>I want to use something like sessions to prevent remote form posting becuase many guessed passwords for a username can be checked through this way.</p>
  
  <p>I know checking referrer is not a secure idea.
  Is auto blocking based on IP a secure one?</p>
  
  <p>Is it a good idea to check if it is posted through Ajax and if not deny it because no one can remote post through Ajax? Is it really secure?</p>
  
  <p>thanks in advance</p>