View Full Version : help required to completely hide a webpage

11-05-2008, 12:09 PM
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....


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

11-05-2008, 08:00 PM
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,

11-06-2008, 01:36 AM
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.

11-06-2008, 03:24 AM
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 (http://www.tizag.com/phpT/phpsessions.php).

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:

Hope that makes sense.

11-06-2008, 05:00 AM
thank you guys...
will give it a try.

great help!