hostfreak Posted September 25, 2006 Share Posted September 25, 2006 I was wondering, say you have a script that will only be accessed by a certain group of people. If you .htaccess your public_html, does that make it pretty safe? The script will also have seperate logins, working with sessions/cookies etc. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/ Share on other sites More sharing options...
trq Posted September 25, 2006 Share Posted September 25, 2006 [quote]If you .htaccess your public_html, does that make it pretty safe?[/quote]We need more detail. What exactly is in this .htaccess file? Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-97974 Share on other sites More sharing options...
hostfreak Posted September 25, 2006 Author Share Posted September 25, 2006 Well, it is the one you can set from cpanel. To password protect a directory and it's sub-directories. If you need to see the exact code it has, let me know. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-97978 Share on other sites More sharing options...
trq Posted September 25, 2006 Share Posted September 25, 2006 Um... that would help. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-97980 Share on other sites More sharing options...
hostfreak Posted September 25, 2006 Author Share Posted September 25, 2006 test Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-98089 Share on other sites More sharing options...
trq Posted September 25, 2006 Share Posted September 25, 2006 What exactly are you tesing? Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-98090 Share on other sites More sharing options...
hostfreak Posted September 25, 2006 Author Share Posted September 25, 2006 [code]AuthType BasicAuthName "Password Protected Area"AuthUserFile "/home/user/.htpasswds//passwd"require valid-user[/code]For some reason I couldn't post on the forums (for a pretty long period) so I was making sure it worked. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-98098 Share on other sites More sharing options...
hostfreak Posted October 4, 2006 Author Share Posted October 4, 2006 bump, I am thinking that should be secure enough, correct? Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-103822 Share on other sites More sharing options...
trq Posted October 4, 2006 Share Posted October 4, 2006 [quote]bump, I am thinking that should be secure enough, correct?[/quote]Enough for what? Seriously... where my parents live, they leave the door unlocked when they go out. That is secure enough for them. Me... I need the door locked because I have 5 computers at home.Do you think this is secure enough? What are you protecting? Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-103829 Share on other sites More sharing options...
Daniel0 Posted October 4, 2006 Share Posted October 4, 2006 I believe that if you are on an encrypted connection it should be pretty safe. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-103846 Share on other sites More sharing options...
hostfreak Posted October 4, 2006 Author Share Posted October 4, 2006 That is just an added security. I have "the door locked" with a normal lock. That is just "a deadbolt". I was just wondering if that was efficient enough .htaccess . It was generated from cpanel. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-103864 Share on other sites More sharing options...
Orio Posted October 4, 2006 Share Posted October 4, 2006 Using thorpe metaphore-The more "locks" you add, the more secure it is :)a username and password being asked by a .htaccess is one lock. If you dont think it's enough add another page asking for a username and password being validate by a php script (using sessions). That's another "lock".Again- It depends what you are proecting.Orio. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-103865 Share on other sites More sharing options...
hostfreak Posted October 4, 2006 Author Share Posted October 4, 2006 Yeah, that is what I have. The htacces creates the first login, then there is a second login which is with php using sessions. I just wanted sure with it being a built in cpanel option, how efficient the code it generated for the .htaccess was. Thanks guys for the replies. Quote Link to comment https://forums.phpfreaks.com/topic/21926-security/#findComment-103868 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.