files i have:
1 index.html
2 ajax.php
When User clicks a button on index file, AJAX call happens with some parameters taken from index files inline jquery to ajax.php and bring data back to index.html. how can i prevent user from directly accessing the ajax.php file by typing url in browser.
I know the token thing but it seem like an hack, i want more decent way.
any help will be greatly appreciated. Thanks.