title: jQuery Ajax security for auto suggest script
body: <p>I am working on some auto-suggest feature.</p>
  
  <p>The script is fairly itself. 
  When a character is typed in to the textbox it sends a ajax post (or get) request to the php file which queries the database and returns a result set.</p>
  
  <p>But the problem is that the php file is accessible on its own. So it can be called directly. Is there a way to prevent this and make that php file to serve only the ajax request on my application.</p>
  
  <p>Thanks in advance.</p>