PHP - Ignoring script files from a directory when navigating to them?
- by Nike
Hey there.
I'm currently working on a file uploading sript in PHP, but i'm kind of stuck. Users are allowed to upload files such as PHP and JS, but i don't want the scripts to run when a user is trying to download them. Is it possible to block that somehow using htaccess or something?
Thanks in advance.