|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
The URL of a site that is doing that would
be helpful. The only way I can think of offhand, would be to dynamically generate the pages with page names being created on the fly as well. But that's quite a lot of trouble to go to just to inconvience your site's visitors. ![]() Scott |
|
#3
|
|||
|
|||
|
You could have PHP file handling this. It wouldn't be too hard to use cookies and urls something like: http://theserver/site.php3/somepage...eforeindex.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 ![]() |
|
#4
|
||||
|
||||
|
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=" " of your page . 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 FirePages@hotmail.com ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > restrict direct access to some .HTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|