W3C home > Mailing lists > Public > www-html@w3.org > June 1999

RE:Avoid Visitors viewing inside pages

From: Ankit Fadia <ankit@bol.net.in>
Date: Tue, 29 Jun 1999 11:25:02 +0530
Message-ID: <009401bec1f4$a8693240$0bf25ecb@ankit>
To: <www-html@w3.org>
I think you want autorization of the visitor brfore he enters the inside pages.The first  thing is that 
the most common way of doing this is to use a CGI Script.But you DON'T HAVE CGI Access.
So the next best way is to use ACTIVE SERVER PAGES(ASP).But if you don't even have that then you can use JavaScript to do what you want to do.But this is not really an efficient method.

Now lets say your  homepage is index.html and the inside main page is main.htm okay so in the main.htm file you write the following:
function verify(){
var dof
if(dof.referrer !="index.htm"){
<body onload=verify()>
I don't think this method is good enough.it won't work on Internet Explorer If you want info on ASP Then mail me.And what Nicholas said about using<meta .......>
is totally wrong it would mean that even if a person has come after autorization(after entering username,Password) he would be redirected to index.html and won't be able to view the inside pages.
Ankit Fadia
Received on Tuesday, 29 June 1999 01:50:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:50 UTC