Google Answers Logo
View Question
 
Q: restrict access to a web page ( No Answer,   3 Comments )
Question  
Subject: restrict access to a web page
Category: Computers > Internet
Asked by: moonsleeper-ga
List Price: $15.00
Posted: 01 Oct 2004 05:35 PDT
Expires: 31 Oct 2004 04:35 PST
Question ID: 408826
Hi, I need to know how to make my web page with downloads to be
accesible only from one particular web page. If user saves the link to
my download page, they should not be able to open it and have acces to
downloads.

Thank you

Request for Question Clarification by hailstorm-ga on 04 Oct 2004 00:19 PDT
moonsleeper,

Could you please let us know if your site is built with static HTML
content, or with some dynamic page rendering technology such as CGI,
PHP, or ASP?

Clarification of Question by moonsleeper-ga on 04 Oct 2004 17:00 PDT
My site built with staic HTML and some javascript. I am looking for a
simplest way to do it. If it will be necessary, I will use more
complicated structures.

Tnank you.
Answer  
There is no answer at this time.

Comments  
Subject: Re: restrict access to a web page
From: csonweb-ga on 01 Oct 2004 06:17 PDT
 
If you are looking for a restricted user access to a page, then you
can create a page with PHP that accesses a database to authenticate
the user & allow him/her to download the file, else would lead to a
failure page. So this would also prevent hotlinking of the file on
your server as the location of the file wouldnt be disclosed.
Subject: Re: restrict access to a web page
From: thekok-ga on 02 Oct 2004 07:56 PDT
 
If you don't need the login machanism..

then you should check if the page that line to you
are coming from an approved URL.. this is normally
call HTTP_REFERER, In ASP will be something like this :

Request.ServerVariables("HTTP_REFERER")
Subject: Re: restrict access to a web page
From: markoft-ga on 04 Oct 2004 18:12 PDT
 
There are only two problems with a using the HTTP_REFERER header.

1. Some people block their browsers from sending them for privacys issues.
2. It would be dead simple for users to get the correct HTTP_REFERER
using a spoofing program like QuickSpoof or the RefSpoof extension for
Mozilla and Firefox.

At the current time what you want to be done isn't effective.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy