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

后端 未结 6 951
北海茫月
北海茫月 2020-12-16 05:08

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 f

6条回答
  •  既然无缘
    2020-12-16 06:00

    There are a variety of options depending on what your underlying need is, whether its a service you will be letting others access, vs something internal only. Here is an article with some good in-depth explanation of the options.

    http://java.sun.com/developer/technicalArticles/J2EE/usingapikeys/

提交回复
热议问题