Disable PHP/script access in a folder?

eger

Verified User
Joined
Nov 3, 2006
Messages
71
I am using suphp and everything is working OK. However, i cannot seem to deny access to scripts being executed in a certain directory.

I have tried an .htaccess with the contents:

Code:
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI

I have also tried puting this code directly in the virtualhost config under a <Directory> context.

Any advice for disabling scripts from running in a certain folder (like an uploads folder)?
 
Back
Top