Jump to content


Photo

Security


  • Please log in to reply
12 replies to this topic

#1 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 25 September 2006 - 05:09 AM

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.

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 September 2006 - 05:10 AM

If you .htaccess your public_html, does that make it pretty safe?


We need more detail. What exactly is in this .htaccess file?

#3 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 25 September 2006 - 05:15 AM

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.

#4 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 September 2006 - 05:19 AM

Um... that would help.

#5 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 25 September 2006 - 11:51 AM

test

#6 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 September 2006 - 11:52 AM

What exactly are you tesing?

#7 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 25 September 2006 - 12:08 PM

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile "/home/user/.htpasswds//passwd"
require valid-user

For some reason I couldn't post on the forums (for a pretty long period) so I was making sure it worked.

#8 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 04 October 2006 - 05:46 PM

bump, I am thinking that should be secure enough, correct?

#9 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 04 October 2006 - 05:54 PM

bump, I am thinking that should be secure enough, correct?


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?

#10 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 04 October 2006 - 06:07 PM

I believe that if you are on an encrypted connection it should be pretty safe.

#11 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 04 October 2006 - 06:40 PM

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.

#12 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 04 October 2006 - 06:48 PM

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.
Think you're smarty?

(Gone until 20 to November)

#13 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 04 October 2006 - 06:52 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users