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

Recommended Answers

All 3 Replies

Member Avatar for iamthwee

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:

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.

Member Avatar for iamthwee


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. ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.