How to exclude files from the Unrecognised File scanning
If the file isn't part of WordPress core, it will be picked up in the scan.
But, there are a couple of files you might have there which don't ship with WordPress.
Listed by default:
You may take a new line for each file you wish to exclude from the scan:
IMPORTANT: You can add the file name or the file path. If you are adding the file path, please use "relative" paths, e.g. wp-content/uploads/test.php, rather than /home/user/path/wp-content/uploads/test.php.
Exclude Multiple Files with Regular Expressions
You can also provide regular expressions to match multiple files. If you’re unsure of what this means, you can ignore it and use the file exclusions as normal – simply put in file names of files to ignore.
How to use regular expressions for file names:
- Any regular expressions must be surrounded by hashes, i.e.
- You’ll need to escape/quote any special characters.
- An example is:
- This example will match
test.log.txtand so they’ll be excluded