| ★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum1/HTML/000217.html | Nouvelle recherche | Portail wanayoo |
|
|
DevShed Discussion Forums
![]() HTML / DHTML
![]() restrict direct access to some .HTML
|
| next newest topic | next oldest topic |
| Author | Topic: restrict direct access to some .HTML |
|
ccm Member |
I knew some website out there can restrict user directly access to some .HTML, they are forced to visit the index.html first how do you do that? |
|
wdn2000 Member |
The URL of a site that is doing that would be helpful. The only way I can think of offhand, would Scott |
|
Dist Member |
You could have PHP file handling this. It wouldn't be too hard to use cookies and urls something like: http://theserver/site.php3/somepagewhichcantbeshownbeforeindex.html Ofcourse that will slow down the site, but that's the only solution I can come up with at 06:11. (Maybe later I'll try again. When I'm home and less tired |
|
firepages Member |
You can a) use cookies and a function that checks wether a cookie you set on the index page exists . or b)use javascript to check the history of your surfer using history.back() function to see if the visitors have visited your index page. All either of these methods require is a little javascript in the <body onload=" " If however your information is sensitive in any way you need HTTP_AUTHENTICATE or a database backed password system - which I only know how to do in PHP which I am assuming you do not have! Simon ------------------ |
All times are MST (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1997-2000 ngenuity. All rights reserved.
Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.