How can we help?

Search for answers or browse our knowledge base.

Table of Contents

Excluding files, file types, and directories from the file changes scan

By default, Melapress File Monitor scans everything apart from media and non-executable files, such as videos, images, text files, and log files. The plugin also scans custom code and web applications that are in any of the WordPress directories. However, you can exclude specific directories, files, or file types from being scanned.

To add exclusions, first, navigate to File Monitoring > Settings, then scroll down to What should be excluded from the scans? section and:

Exclude directories

To exclude a directory from being scanned, enter the directory in the Exclude all files in these directories textbox and click on Add.

Do note that you’ll need to enter the full URI following the website’s absolute path, which is listed right above the textbox.

Example: wp-content/cache

To include any of the excluded directories in the next scan, simply untick the checkbox next to the excluded directory.

Click Save to save changes.

Exclude files

To exclude files from being scanned, enter the file name, complete with file extension, in the Exclude these files textbox, and click on Add.

Example: wp-config-sample.php

Melapress File Monitor will exclude all files that match the provided filename, regardless of the directory they reside in. To exclude one specific file, include the full directory URI, excluding the website’s absolute path.

Example: wp-content/excludedfile.php

To include any of the excluded files in the next scan, simply untick the checkbox next to the excluded file.

Click Save to save changes.

Exclude file types

To exclude a file type from being scanned, enter the file extension in the Exclude these file types textbox and click on Add.

Example: .pdf

To include any of the excluded file types in the next scan, simply untick the checkbox next to the excluded file type.

Click Save to save changes.