PDA

View Full Version : how to prevent direct direct access to html page??


kab_184
08-25-2002, 10:48 AM
some time pople type the direct url and reach the html page on my site.how can i prevent them fom doing this. i want them to com through my home page only.So that there is only oneway access like ...homepage>special page.
Does anyone knows the answer.. any special trick or script ??
thanx

Catman
08-25-2002, 05:21 PM
The referrer object returns an empty string if a page is opened by typing the url rather than coming via a link, so I'd guess if you did something like this:

<body onload="if (document.referrer == '') self.location='homepage.html';">

Those two single quotes inside the parens look like a double quote. :(