Here’s the contents of the htaccess file:
AddType text/plain .pl .cgi .php .html .asp
It’s that simple. This line causes Apache to treat any files with extensions found in that list as if they were text files an thus making them not executable.
If you have custom extensions set up in your Apache configuration file, just add those extensions to the list and you should be good.
Obviously, if you have a script that is located in that folder, you would need to move it somewhere else and update it to accommodate for its new location. It is never a good idea to place your scripts inside a writable folder anyway.