I have a page and I would like to allow access to this page only from domains that I allow. What would be the best way of doing this?
|
feedback
|
migrated from stackoverflow.com Jan 9 at 2:08
This question came from our site for professional and enthusiast programmers.
closed as off topic by Mark Henderson♦ Jan 9 at 2:17
Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.
|
You can start by checking Examples: | |||
|
feedback
|
|
use $_SERVER['HTTP_REFERER'] to check what website is accessing your page and compare it with your list of website. user it in the header part of your page like following,
| |||
|
feedback
|