- From: Ankit Fadia <ankit@bol.net.in>
- Date: Tue, 29 Jun 1999 11:25:02 +0530
- To: <www-html@w3.org>
- Message-ID: <009401bec1f4$a8693240$0bf25ecb@ankit>
Hi 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: <script> function verify(){ var dof dof=document.referrer if(dof.referrer !="index.htm"){ location='index.htm'} } </script> <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. Bye, Ankit Fadia
Received on Tuesday, 29 June 1999 01:50:48 UTC