title: How can I restrict access to some PHP pages only from pages within my website?
body: <p>I have in my website a PHP page which retrieves data from my database to be presented in my website. This page is called via AJAX. How can I restrict the access to it only from pages within my website so users who wants to abuse it and get this data <strong>not</strong> from the website (e.g. posting HTTP request from their server) itself won't be able to do so ?</p>