I am working on some auto-suggest feature.
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.
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.
Thanks in advance.