Title: Exclude files from scan
Last modified: August 30, 2016

---

# Exclude files from scan

 *  Resolved [Wasabee](https://wordpress.org/support/users/wasabee/)
 * (@wasabee)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/)
 * Hello,
 * I’ve installed Wordfence Security 6.0.7 and wanted to exclude files from scan
   that match following wildcard patterns:
    *.png,*.jpg
 * Using the options doesn’t work for me.
 * As in the file lib/wfConfig.php ‘scan_exclude’ => ” was never changed, I went
   desperate and even tried to define
    $excludePattern = ‘/^(?:.*\.png|.*\.jpg)$/
   i’; in the file lib/wordfenceScanner.php.
 * But those file are still scanned.
 * Do you have any idea, what the problem could be?
 * Thanks in advance!
 * Regards
    Nina
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [WFBrian](https://wordpress.org/support/users/wfbrian/)
 * (@wfbrian)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/#post-6247780)
 * Hi Nina,
 * Was exclude wildcards working for your prior to 6.0.7?
 * Thanks,
    Brian
 *  Thread Starter [Wasabee](https://wordpress.org/support/users/wasabee/)
 * (@wasabee)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/#post-6247783)
 * Hi Brian,
 * thanks for your quick response.
    I’ve used 6.0.3 before and wildcards didn’t 
   work already. I hoped an update would fix the problem…
 * Regards,
    Nina
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/#post-6247786)
 * Do you have the scan images as executable option checked?
 * tim
 *  Thread Starter [Wasabee](https://wordpress.org/support/users/wasabee/)
 * (@wasabee)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/#post-6247788)
 * Hi Tim,
 * no, “Scan image files as if they were executable” is not checked.
 * In fact my “scans to include” options look like follows:
 * Scan for the HeartBleed vulnerability?
    -> checked Scan core files against repository
   versions for changes -> checked Scan theme files against repository versions 
   for changes -> nope Scan plugin files against repository versions for changes-
   > checked Scan for signatures of known malicious files -> checked Scan file contents
   for backdoors, trojans and suspicious code -> checked Scan database for backdoors,
   trojans and suspicious code -> checked Scan posts for known dangerous URLs and
   suspicious content -> checked Scan comments for known dangerous URLs and suspicious
   content -> checked Scan for out of date plugins, themes and WordPress versions-
   > checked Check the strength of passwords -> checked Monitor disk space -> checked
   Scan for unauthorized DNS changes -> checked Scan files outside your WordPress
   installation -> nope Scan image files as if they were executable -> nope Enable
   HIGH SENSITIVITY scanning. May give false positives. -> nope Exclude files from
   scan that match these wildcard patterns. Comma separated. -> *.jpg,*.png
 * Regards,
    Nina
 *  Thread Starter [Wasabee](https://wordpress.org/support/users/wasabee/)
 * (@wasabee)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/#post-6247829)
 * Does anyone have an idea for a solution?
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/#post-6247832)
 * We were testing this and I apologize for not getting back to you. I have a bug
   in on this now. We’ll announce it when it gets addressed, hopefully soon.
    Thanks
   for reporting it.
 * tim
    FB811

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Exclude files from scan’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/exclude-files-from-scan/#post-6247832)
 * Status: resolved