RB Cloak Media Files protects your WordPress media library by replacing real filenames with cryptographically secure cloaks. This prevents unauthorised users from discovering your private files through URL guessing, brute‑forcing, or enumeration attacks.
If your website contains sensitive, private, or paid content (course materials, client documents, downloadable assets, membership content, or internal resources), your media folder may be more exposed than you think. WordPress stores every uploaded file under a predictable path (/uploads/yyyy/mm/filename.ext). Anyone who knows or guesses a filename can access it directly, even without a user account.
RB Cloak Media Files solves this by giving every protected file a unique, unpredictable identifier that cannot be enumerated. The original filename is stored safely in post meta, so you never lose track of your data.
WordPress never checks permissions when serving files directly from /uploads/.
Anyone with the URL can access the file, even if the content is:
* behind a paywall
* visible only to logged‑in users
* restricted to specific roles
* attached to private or draft posts
RB Cloak Media Files prevents this by replacing the original filenames with secure cloaks, making URLs impossible to guess. This dramatically reduces the risk of:
image-xxxxx.jpg).wp_get_attachment_url(), the_post_thumbnail(), etc.).RB Cloak Media Files is lightweight, fast, and designed to work seamlessly with any theme or plugin. No complex setup: activate and your new uploads are protected immediately.