Requiring a referral page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I don't know if this can be done, but I am trying to ensure that a page can't
be bookmarked/added to favorites. The site is setup with a log in for a
portion of the site. I have built a second site that will be linked off of
the original site, but only if they have logged in.

My question is, can a Web page be setup to only open if it is coming from a
specific location and not from someone typing in the direct link to that page?

Thanks!
 
If it's password protected and they type in the direct url, they'll get prompted for un/pw.
 
Thanks for replying Rob.

The second site is not password protected, that is why I would like to have
it require a previous page before loading. The customer will be logging into
the main site and then potentially following a link to the second site. It is
going to be a seperate Web page that opens up. My worries are that the
customer will create a favorite to this second site and will not have to log
into the main site. We would like to "force" the customer to log into the
main site prior to accessing this second site.
 
As long as the second site can run server-side scripting you can limit access to being from a
specific URL or domain. With ASP, you would use:

Request.ServerVariables("HTTP_REFERER")

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Thanks for replying Thomas.

Would HTTP_Referer be the Web Address that they are coming from?
 
Yes.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Thanks!!!!!

Thomas A. Rowe said:
Yes.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Back
Top