How can we help?

Search for answers or browse our knowledge base.

Table of Contents

What are allowed files in the WordPress core and core directories?

When Melapress File Monitor scans your WordPress Core Files, it compares their hash values with the hash values of the files in the official WordPress repository. Through this comparison, the plugin can alert you whenever:

  • Any of your WordPress core files do not match their counterpart in the WordPress repository
  • There are files in any of your WordPress Core Files directories that are not present in their WordPress repository counterpart

By default, the plugin assumes that any discrepancy is a security risk and notifies you as such. However, additional or altered files can have legitimate purposes – when placed there intentionally to, for example, add custom processes or functionality. In such cases, these files can be included as allowed files and thus excluded from future alerts.

IMPORTANT: It’s important to note that custom files are not immune from malicious tampering. As such, you might want to consider using the file comparison scan to ensure that you can uncover any unauthorized changes.

This post explains what non-WordPress core files are, why the plugin notifies you of them, and how you can configure the plugin to handle these files as legitimate files.

What is the WordPress core?

WordPress is made up of a number of files, all of which can be found in your website’s root directory. The only exception here is the wp-content folder, which is where plugins, themes, and uploads are stored.

As a security precaution, any other files saved outside the wp-content folder are considered malicious by the plugin.

For example, if during a file integrity scan, the plugin identifies an info.php file in your website root directory, it will alert you about it each time. This is a security precaution because, by default, there is no info.php file in the WordPress core directory. 

If you are aware of the file and its purpose, you can add it as an allowed file in the WordPress core. This will exclude it from future alerts following a scan.

What are allowed files?

Allowed files are non-WordPress core files (such as those from a custom web application) saved in your WordPress core directory that the plugin is aware of. This excludes them from future alerts.

How do you add a file (or all files in a directory) to the list of allowed files?

You can add files or folders in one of two ways – through the plugin settings or scan results.

From plugin settings

First, navigate to File Monitoring > Settings > WordPress core

Scroll down to the Which files are allowed as part of WordPress core (website root directory, wp-admin and wp-includes)? section. Add files by typing the filename and extension in the available textbox and clicking on Add. Make sure you click on Save once done for the changes to take effect.

You can also remove any of the files allowed by default by clicking on the checkbox next to them.

Which files are allowed as part of WordPress core

From scan results notification

To exclude the file or its directory from being included in future scans:

  • Click the x in the File modified field to exclude the file 
  • Click the x  in the Directory field to exclude the directory
From scan results notification

 Boost your sites’ security and management! Download our free eBook on WordPress oversight.

Uploading WP 2FA as a zip file in WordPress
WP 2FA in the WordPress plugin repository
Close

Installing WP 2FA Free

Congratulations on taking the first step towards enhancing your WordPress site's security with WP 2FA Free! You're now on your way to protecting your valuable data and ensuring peace of mind. No coding or technical knowledge is required.

 

Below are two ways to install WP 2FA on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for WP 2FA.

Download the WP 2FA plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading CAPTCHA 4WP as a zip file in WordPress
CAPTCHA 4WP in the WordPress plugin repository
Close

Installing CAPTCHA 4WP Free

Well done you. You're one step closer to safeguarding your WordPress website from spam and automated attacks with CAPTCHA 4WP. You'll be able to effortlessly integrate CAPTCHA into your forms and enjoy a website with enhanced security.

 

Below are two ways to install CAPTCHA 4WP on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for CAPTCHA 4WP.

Download the CAPTCHA 4WP plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading WP Activity Log as a zip file in WordPress
WP Activity Log in the WordPress plugin repository
Close

Installing WP Activity Log Free on your website

You deserve a pat on the back for choosing to record user actions and changes on your website. That is the first step towards better user accountability, easier troubleshooting of website security, and many other benefits of issues.

 

Below are the two ways to install WP Activity Log on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for WP Activity Log.

Download the WP Activity Log plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading Melapress Login Security as a zip file in WordPress
Melapress Login Security in the WordPress plugin repository
Close

Installing Melapress Login Security Free

Congratulations on taking control of your WordPress website's security by implementing robust login and password policies with Melapress Login Security. You can change your login page URL, limit failed login attempts, and reset passwords.

 

Below are two ways to install Melapress Login Security on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for Melapress Login Security.

Download the Melapress Login Security plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2