Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的网站上制作了一个上传表单,想知道是否可以使上传文件夹和任何加载的文件不可执行?
我已经采取了其他预防措施,例如对上传的任何内容进行消毒,但我很想知道是否有可能使我的上传文件夹及其内容无法执行
chmod -x设置文件/文件夹不可执行。您可以在上传后将 PHP 中的 chmod 应用于每个文件。
chmod -x
http://en.wikipedia.org/wiki/Chmod