User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 361,912 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,554 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser:
Views: 1682 | Replies: 3
Reply
Join Date: Jan 2006
Posts: 1
Reputation: akampro is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
akampro akampro is offline Offline
Newbie Poster

Help Protect a certain page by a password

  #1  
Jan 5th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: Trailer trash caravan park, just down the road from loserville
Posts: 4,549
Reputation: iamthwee is a jewel in the rough iamthwee is a jewel in the rough iamthwee is a jewel in the rough iamthwee is a jewel in the rough 
Rep Power: 15
Solved Threads: 284
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Protect a certain page by a password

  #2  
Jan 5th, 2006
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

Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: Jan 2006
Posts: 10
Reputation: ergorest is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
ergorest ergorest is offline Offline
Newbie Poster

Re: Protect a certain page by a password

  #3  
Jan 11th, 2006
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.
Reply With Quote  
Join Date: Aug 2005
Location: Trailer trash caravan park, just down the road from loserville
Posts: 4,549
Reputation: iamthwee is a jewel in the rough iamthwee is a jewel in the rough iamthwee is a jewel in the rough iamthwee is a jewel in the rough 
Rep Power: 15
Solved Threads: 284
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Protect a certain page by a password

  #4  
Jan 12th, 2006
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.
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Site Layout and Usability Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Site Layout and Usability Forum

All times are GMT -4. The time now is 9:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC