WebsiteBaker Modules, Snippets, Admin-Tools

Patch for Secure Image Folder in WB 2.13.8

user rating: no votes yet!no votes yet!no votes yet!no votes yet!no votes yet! (click to vote)



Patch for Secure Image Folder in WB 2.13.8

This patch adds a secure file feature to WebsiteBaker, allowing for a protected /media/private/ folder. It serves files from this folder only to authenticated backend users, preventing direct public access. This modification is fully integrated and fixes the common issue of broken thumbnail previews for protected files within the CKEditor file browser.

Version
License GPL
Latest add-ons update 2025-08-24 14:53 UTC
Download Counter 95
Developer Jacobi22
Addon type Test-Version
Category Test-Version
WebsiteBaker Version Unknown
PHP Version PHP 8.1.x
 

This patch integrates a secure file handling system directly into the WebsiteBaker core.
What this patch does:
Introduces a /media/private/ folder: Any files placed in this directory are automatically protected from direct public access via an .htaccess file.
Secure File Delivery: Files from the private folder are now served through a core script that checks if a backend user is properly authenticated. If not, access is denied.
CKEditor Preview Fix: Crucially, this solution also fixes the thumbnail preview issue within the CKEditor's file browser. You can now see and select images from the protected /private/ folder seamlessly.
This provides a secure, integrated way to manage sensitive files without needing to modify third-party addons.
The patch is attached to this post. For detailed installation steps, please consult the README.txt file inside the ZIP archive.


Last change 2025-08-24 15:43 UTC by Uwe Jacobsen