Solved

PHP page access from a particular site only

Posted on 2007-03-28
1
183 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
ID: 18806683
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Download tables into separate sheets 3 27
maybe no no httpd.conf 6 47
google analytics in wordpress 4 35
showing loader for php/mysql/ajax live search 13 24
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 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