Prevent php scripts running via .htaccess and AddHandler
Posted on 2004-11-25
I need to offer FTP access to a subdirectory to a select few clients.
This will be just to share .doc and .pdf files, but it needs to be accessible from the web... and hence I want to safeguard against potential misuse (although the clients are 100% trustworthy, you never know !!!)
I think there is a way to have an .htaccess file which sets the type of a .php file to null or something, so it can't run even if it's there... Is this using AddHandler ???
Anyway, despite searching EE and the web, I can't find the syntax to make an .htaccess file which will render .php or other script files useless in this particular subdirectory - any ideas ???