Re: Protecting files
| From: | Greg Donald | Date: | Mon, 17 Feb 2003 21:32:31 +0000 |
| Subject: | Re: Protecting files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135903@lists.php.net to get a copy of this message | ||
On Mon, 17 Feb 2003, PR wrote:
>How can I protect my php files among other files like templates
>(.inc) and mysql config (config.inc) files being copied/read/imported (front
>page)/used by other applications other than my
>site...
>
>can this be done by htaccess? is so , could anyone point me into right
>direction?
The best way is to not allow anyone else access to your files to begin
with. I assume you mean you are in a shared hosting environment? Your
system administrators can and should have permissions setup so no one can
mess with your stuff by default. If that is not the case, I'd move.
What kind of system is it? If it's unix you can make use of chown and
chmod to protect your stuff. If it's windows, I don't know.
--
Greg Donald
http://destiney.com