This content has been marked as final. Show 2 replies
Putall of your user access pages under the same folder and grant user access only to the parent folder. Everything under there will be un readable by anyone not logged into the parent folder.
On Tue, 29 Aug 2006 09:11:08 +0000 (UTC), "Jamal Dayes"
>The external site has a members'
>area and I want my site to form part of the membership area, thus only users
>coming from within the members area can access my pages.
There is no reliable way to do that when the referring page is from
another site. The HTTP_REFERER header is unreliable because some
firewalls, proxy servers, and even some browsers block it. It's also
easily faked when it is sent.
Now, how important is this? If it's okay that it's not reliable, it
would be easy enough to do using a bit of PHP. Just put something like
this at the VERY TOP of the source code of your page:
Change the 2 URLs to match the referring page and the login page
respectively. It will allow anyone in where the referrer is not
received, or where the referrer is the specified page. It will re-direct
anyone where the referrer is received, but does not match the specified