Hello guys, i stumbled over a htaccess trick once but cannot find it again.
I need a htaccess script that prevent files in a specific folder to not be executed.

If any of you have this / know about it, i would love you for the rest of your life!*cough*

When people upload a file for example a .php file to this folder, i do not want the file to be able to execute at any time in that folder.

Thanks for the effort arday but i really need something that only stop files in the folder to not execute.

<Files ~ "\.(php)$">
 Order allow,deny
 Deny from all
 Satisfy All
</Files>

Thanks lili.edryana, maybe that will do it!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.