WPO365 45.5 further improves Media Library Protection

With WPO365 45.5, “Require login for the Media Library” becomes “Media Library Protection”, a new name that better reflects what the feature does: protect files in the WordPress Media Library from unauthorized direct access.

Feature - Media Library Protection for WordPress

Following the security improvements introduced with WPO365 45.1, version 45.5 further strengthens that protection, adds support for more WordPress configurations and hosting environments, and introduces new checks to help administrators verify that protection is working as intended.

Important action after updating

If you already use Media Library Protection, please update WPO365 | LOGIN and your premium WPO365 plugin and then navigate to WPO365 → Roles + Access. Switch Media Library Protection off and on again once.

This creates the new access-control rules in the uploads folder and ensures your website benefits from the improvements in version 45.5.

Protection moves closer to your Media Library files

Until now, WPO365 added its access-control rules to the .htaccess file in the WordPress root. Version 45.5 instead writes these rules directly to the uploads folder, closer to the files they protect.

This improves protection in situations where another plugin has added rewrite rules to the uploads folder or where WordPress itself is installed in a subfolder.

In addition, signing out now removes the Media Library Protection cookie, requiring users to authenticate again before accessing protected files.

Support for Bedrock and other WordPress layouts

Media Library Protection no longer assumes that WordPress core, wp-content and the uploads folder are located underneath the same application root.

This adds support for Bedrock and other custom WordPress layouts where WordPress core and wp-content are installed separately.

Version 45.5 also improves compatibility with hosting platforms that rewrite Media Library requests before they reach WPO365, including WP Engine.

Better checks and easier configuration

WPO365 now actively tests whether requests for protected Media Library files reach the plugin. If they don’t, for example because of an nginx or server configuration, WPO365 displays a warning in the WordPress admin. The same check is also included in the WPO365 self-test.

Finally, WPO365 | LOGIN now includes a new Media Library Protection card on the dashboard, making it easier to see whether protection is enabled and switch it on or off.

If you are using Media Library Protection, I strongly recommend updating to WPO365 45.5 and completing the one-time configuration step described above.