#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Hong Kong
    Posts
    73
    Rep Power
    15
    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. #2
  3. Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Apr 2000
    Posts
    1,058
    Rep Power
    22
    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
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    31
    Rep Power
    15
    You could have PHP file handling this. It wouldn't be too hard to use cookies and urls something like: http://theserver/site.php3/somepagew...foreindex.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
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    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

Similar Threads

  1. ms access - mySQL interaction question
    By alexmasters in forum MySQL Help
    Replies: 0
    Last Post: December 6th, 2003, 07:09 AM
  2. access - mySQL interaction question
    By alexmasters in forum PHP Development
    Replies: 0
    Last Post: December 5th, 2003, 11:31 AM
  3. Techniques for synchronizing and merging Access DB's
    By dirty in forum Database Management
    Replies: 1
    Last Post: August 29th, 2002, 08:34 AM
  4. Odd problem with access control system
    By jacobee in forum PHP Development
    Replies: 4
    Last Post: September 2nd, 2001, 04:15 PM
  5. restricting db access
    By mouserdj in forum MySQL Help
    Replies: 1
    Last Post: July 30th, 2001, 04:39 AM

IMN logo majestic logo threadwatch logo seochat tools logo