PDA

View Full Version : Is there a way to...



Cloud9WD
Jan 12th, 2007, 12:38 AM
Is there a way for a page to only accept users who have been redirected from a specific page?

Thanks

whizard
Jan 12th, 2007, 12:47 AM
Not with HTML/CSS, but here is a way with PHP:



if($_SERVER['HTTP_REFERER'] !== "PAGE YOU WANT USER TO COME FROM")
{
//Redirect them somewhere else
}


HTH
Dan

Vapor
Jan 12th, 2007, 03:47 AM
Just create a client side login so that only certain users can access your pages. And for those who swear it can't be done, I have done it. Here (http://www.geocities.com/biblicalresearchonline)is a little test site I made.

Attached is the files you need.

1 more tip is to make your page with frames so that when people try to view your source they can't see where the auth page will redirect you.