★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum1/HTML/000217.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  HTML / DHTML
  restrict direct access to some .HTML

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   restrict direct access to some .HTML
ccm
Member
posted April 04, 2000 03:22 AM     Click Here to See the Profile for ccm   Click Here to Email ccm     Edit/Delete Message Reply w/Quote
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
posted April 16, 2000 03:07 AM     Click Here to See the Profile for wdn2000   Click Here to Email wdn2000     Edit/Delete Message Reply w/Quote
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

Dist
Member
posted April 16, 2000 09:29 PM     Click Here to See the Profile for Dist   Click Here to Email Dist     Edit/Delete Message Reply w/Quote
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
posted April 17, 2000 09:03 AM     Click Here to See the Profile for firepages   Click Here to Email firepages     Edit/Delete Message Reply w/Quote
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

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.