Results 1 to 5 of 5

Thread: help required to completely hide a webpage

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help required to completely hide a webpage

    I am requiring help in order to completely hide a webpage.

    say for example I have a page named "hiddenpage.html"

    from the "index.html" page, I have created a password prompt where if the password entry is successful it would go to the "hiddenpage.html"

    nonetheless, from the "index.html" page on the address bar where it would say something like....

    http://www.mydomain.com/index.html

    if I just change the end bit of "index.html" to "hiddenpage.html" (making it www.mydomain.com/hiddenpage.html) it successfully loads the hidden page without requiring any password.

    Now, I understand that people would have to know the name of the hidden page html file in order to type it in and access it, but I would like to know if there is a way to restrict this access also.

    I have thought of making the hidden page html file name to something like "wi*&987fkljaiouerlkj@$.html" so that average joes would not be able to estimate the name of the hidden page.

    But I would appreciate someones help if there is a better method.


    thanks in advance

  2. #2
    Join Date
    Oct 2008
    Location
    Columbia Md
    Posts
    27
    Thanks
    1
    Thanked 8 Times in 8 Posts

    Default

    Good Day

    I suggest moving this post to either the ASP or PHP forums. The reason is that you need to set up some restrictions to accessing this page.

    One way would to be to start a session after a person has successfully logged in. From there you can set up a variable to prevent the page from loading. If they are logged in, the page loads, otherwise the browser is redirected to the index page.

    Pick the forum that relates to the server-side scripting you are using to log in users. From there we can help direct you in the right direction.

    Good Luck,
    Ben

  3. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    completely hiding a page is easy. just take it off-line!!!

    j/k. the easiest thing to do is to check if your web host allows you to set permissions on your web folders/pages. (Almost all of them do. You just have to find out how to.) Then, put your "hidden" page in it's own folder and require a password for that folder.

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    This is better accomplished using server-side languages (PHP/ASP). I know only of the earlier.

    With that said, you need to set a session.

    On your hiddenpage (no longer html extension), check if the session is set, if not, then redirect to the index page.

    You might find these links useful:
    http://us3.php.net/session
    http://us2.php.net/function.session-start
    http://www.w3schools.com/PHP/php_sessions.asp

    Hope that makes sense.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thank you

    thank you guys...
    will give it a try.

    great help!

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
  •