Folio Gatehouse lets you protect files inside your uploads directory by restricting access to specific WordPress user roles. Files are served through PHP — the web server never delivers them directly — so direct URL access is blocked regardless of link sharing.
Key features:
[rbfa_login_link] inserts a secure login link that returns the user to the originally-requested file after authentication, using an opaque token so no file path is exposed in the URL/protected-zone/{slug}/ with customisable title and body content, rendered inside your active theme[rbfa_files] shortcode renders a collapsible, downloadable file listing for authorised users, with per-directory file counts, sizes, and ZIP download buttonsfgh_ prefix) directly from the plugin, with searchable member management.htaccess integrity — automatically writes and repairs rewrite rules across all protected directories; optional hourly cronlocation blocks when NGINX is detectedreadfile) — web server never delivers protected files directlyrealpath() boundary check before any file is servedwp_kses allowlist on save and read-backORDER BY clauses use a server-side whitelist to prevent SQL injectionmod_rewrite enabled, or NGINX (with manual server block configuration — see the NGINX Config tab)