-
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
-
-
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
-
-
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.
-
-
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.
-
-
thank you
thank you guys...
will give it a try.
great help!
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks