DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Site Layout and Usability (http://www.daniweb.com/forums/forum130.html)
-   -   Protect a certain page by a password (http://www.daniweb.com/forums/thread37561.html)

akampro Jan 5th, 2006 5:55 am
Protect a certain page by a password
 
Hi, I need a little help Please,

I am a Newbie here... I have created a login on my website. After the user logs in he gets directed to his page example: www.abc.com/user1.htm... but if this address is manually entered (without logging in) even then the page shows... i want it to show "Access Denied" if not logged in, how can i do that?? Please Help

Regards,
akampro

iamthwee Jan 5th, 2006 9:05 am
Re: Protect a certain page by a password
 
Quote:

Originally Posted by akampro
Hi, I need a little help Please,

I am a Newbie here... I have created a login on my website. After the user logs in he gets directed to his page example: www.abc.com/user1.htm... but if this address is manually entered (without logging in) even then the page shows... i want it to show "Access Denied" if not logged in, how can i do that?? Please Help

Regards,
akampro


Try this, u need 2 use the encrypted example...
http://www.javascriptkit.com/script/cutindex6.shtml

:cool:

ergorest Jan 11th, 2006 8:29 pm
Re: Protect a certain page by a password
 
You can also make certain pages/folders access denied using .htaccess.

This is the easiest and most secure way to do it, I would not rely on javascript.

iamthwee Jan 12th, 2006 5:32 am
Re: Protect a certain page by a password
 
Quote:

Originally Posted by ergorest

This is the easiest and most secure way to do it, I would not rely on javascript.


Actually the language itself has nothing to do with the security aspect.

Rather the type of encryption technique governs how secure something is. ;)


All times are GMT -4. The time now is 3:55 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC