scr34m / php-malware-scanner

Scans PHP files for malwares and known threats
GNU General Public License v3.0
556 stars 96 forks source link

How to add ignore extension? #89

Closed toriqsetiawan closed 1 year ago

toriqsetiawan commented 1 year ago

Hi @scr34m

I want to ignore some extensions like .pdf, .doc, .docx. please help me how to solve this problem.

I saw on the documentation that we can ignore a folder, I just wondering about extension.

thank you

scr34m commented 1 year ago

You can use multiple --ignore or -i so you can try the following command: php scan.php -d samples/ -i .doc -i .docx -i .pdf