Forum Moderators: coopster

Message Too Old, No Replies

Restrict PHP usage from a folder

         

Cresso

5:02 pm on Dec 2, 2004 (gmt 0)



Hello everyone.

Here's the context: We have a server and have been hosting our own websites for a while. But now, a customer wants to have FTP access in order to manage his static, non-PHP website. I found a solution that seems to work and would like to know if it is safe enough to be used.

I added:
<Location />
ForceType text/html
</Location>

To hpptd.conf file in the vhost entry of my customer's website. It seems to work fine, as all .php files are not parsed by php anymore.

It is not easy nor possible to change the global configs of the httpd.conf and not possible also to install a separate apache server.

So, do you believe that this is an appropriate solution?

Thank you for your help

coopster

10:12 pm on Dec 2, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Cresso.

Certainly seems like a viable alternative to me. Comments from anybody else?