PHP - Ignoring script files from a directory when navigating to them?
Posted
by Nike
on Stack Overflow
See other posts from Stack Overflow
or by Nike
Published on 2010-05-21T14:17:19Z
Indexed on
2010/05/21
14:20 UTC
Read the original article
Hit count: 145
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.
© Stack Overflow or respective owner