I have several folders that need to be chmod 777. I am trying to disallow any script including php from running from those folders.
I added a .htaccess file to each with:
OPTIONS -Indexes -ExecCGI
but that didn't work. Tried:
OPTIONS -Indexes -ExecCGI
AddHandler cgi-script .pl .cgi .php
Tested using a simple "hello world" php doc.
and that only works after refresh from the browser. "Hello World" is displayed but after refresh I get server error.
I have tried placing ExecCGI (Allowoverrides) or variation per suggestions found here in the user http.config file to no effect.
Can someone please help. Basically i would like to protect those directories from the ability to run scripts with .htaccess.
I added a .htaccess file to each with:
OPTIONS -Indexes -ExecCGI
but that didn't work. Tried:
OPTIONS -Indexes -ExecCGI
AddHandler cgi-script .pl .cgi .php
Tested using a simple "hello world" php doc.
and that only works after refresh from the browser. "Hello World" is displayed but after refresh I get server error.
I have tried placing ExecCGI (Allowoverrides) or variation per suggestions found here in the user http.config file to no effect.
Can someone please help. Basically i would like to protect those directories from the ability to run scripts with .htaccess.