Solved

PHP page access from a particular site only

Posted on 2007-03-28
1
159 Views
Last Modified: 2008-03-06
Hi,
  I have a php page (aaa.php) that would like to show to my client.  However, I hope the client must link from a particular site say, http://www.abc.com/  otherwises they cannot be accessed (aaa.php)

is it possible?
0
Comment
Question by:gorexy
1 Comment
 
LVL 29

Accepted Solution

by:
TeRReF earned 50 total points
Comment Utility
You can use $_SERVER['HTTP_REFERER'];
to check if the user came from that particular link and show the page if so..
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now