How to make sure that a person does not see the results from the PHP script url?
Recently, while viewing the source of the site that made the AJAX call, I tried to execute the link in the browser
www.site.com/script.php?query=value
Instead of getting the result that I expected to see, I saw a message stating that only scripts should view this page.
How do you limit the script to the fact that the script has access to it?
UPDATE:
here is the DEMO page page
source
share