Re: Protecting individual files/dirs from access

From: Date: Sat, 14 Apr 2007 15:47:15 +0000
Subject: Re: Protecting individual files/dirs from access
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-252942@lists.php.net to get a copy of this message
At 4:56 PM -0500 4/13/07, Richard Lynch wrote:
Put the files outside the webtree, and have a PHP script that controls access and is your gate-keeper.
Richard: How secure is this: http://sperling.com/a/pw There are seven files there, namely: http://sperling.com/a/pw/.htaccess http://sperling.com/a/pw/a.php http://sperling.com/a/pw/b.php http://sperling.com/a/pw/auth.php http://sperling.com/a/pw/index.php
http://sperling.com/a/pw/girl.gif    <-- not protected.
http://sperling.com/a/pw/girl.jpg <-- protected, but well worth the effort. Are any of these files accessible, even when you know the path? And by "accessible" I mean can you obtain any information that the files contain? For example, if I were to tell people to store their user id and password in a configuration php file with a known path, would it be safe? I realize that if the server is breached then nothing is safe, but barring that -- how safe would that be? Thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#252942) next »