SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    hamburg
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb php authentication and include files

    hi all,
    after having implemented some php auth class for
    restricted webpages, i am wondering how to
    protect those pages better from being loaded
    directly. this is possible because they
    are included by a main file. can i force the
    frameset to be loaded if it is not present,
    apart from setting a SESSION variable ?
    i have no idea how to avoid this !

    this is how it is done by now:

    1) index.php
    a frameset with an emtpy and invisible dummyframe
    and a 'mainframe' (in order to avoid showing
    ugly GET parameters in the browser adress bar)

    2) index2.php?page=XY
    performs authentication for specific pages.

    is there any solution to this issue,
    please lemme know,
    thx, jyrgen

  2. #2
    Non-Member Gator99's Avatar
    Join Date
    Sep 2004
    Location
    Florida
    Posts
    613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Move the pages to a subdirectory, eg "pages", and throw an .htaccess in this directory that says:
    Order Deny,Allow
    Deny from all


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •