How to prevent every malicious file upload on my server? (check file type)?

前端 未结 6 1211
半阙折子戏
半阙折子戏 2021-01-05 14:46

my proble is to avoid that users upload some malicious file on my web-server. Im working on linux environment (debian).

Actually the uploads are handled via php by t

6条回答
  •  臣服心动
    2021-01-05 15:20

    Users shouldn't be able to execute the files they upload. Remove their permission to execute.

提交回复
热议问题