I don't have time to write the script for you...

but this is what I would do..

use Javascript to write a session only cookie, (meaning it expires when they
close the browser)

put that cookie on your index page.. then in the login page, put javascript
to retrieve the cookie..
then if the cookie isn't present, use javascript to redirect them to the
index page..

That would work, but only if they had cookies enabled.

the other way would be with JS and a hidden frame, exactly the same thing,
except that the info is kept in a hidden frame.

that way it doesn't matter if the person has cookies enabled or not.

all the code to do that is freely available at Js sites all over the
internet.

rgds

Frank




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jon Doe
Sent: Friday, 9 November 2001 5:55 AM
To: [EMAIL PROTECTED]
Subject: [newbie] OT Kinda: help with redirect script for apache?


I want force visitors to enter my site through the index.html page. I have
been seeing alot of them just bookmark the login page and it just irks me
all
the work I put into this site and they never even see the news or guestbook
links cause they are bypassing them.
I have no idea how to make a script that will do this, I assume it would
somehow check the referer and redirect if the referer is anything but my
site.
I have searched all over for a script or way to do this and havn't found
anyhting. I have in the past seen sites like this though, of course I can
find none of them now.
Does anyone know where I can get such a thing or be willing to write a
script
and tell me how to implement it?



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to