How can I restrict access to some PHP pages only from pages within my website ?

Posted by Yossi on Stack Overflow See other posts from Stack Overflow or by Yossi
Published on 2010-05-06T21:09:23Z Indexed on 2010/05/06 21:18 UTC
Read the original article Hit count: 248

Filed under:
|
|

Hi - 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 not from the website (e.g. posting HTTP request from their server) itself won't be able to do so ?

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about security