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

前端 未结 6 1252
半阙折子戏
半阙折子戏 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:10

    Typically you use the 'file' command to find out what a file contains. I'm not sure, however, if it will detect .exe files:

    http://unixhelp.ed.ac.uk/CGI/man-cgi?file

提交回复
热议问题