Linux 软件免费装
Banner图

Folio Gatehouse

开发者 buffcleb
更新时间 2026年8月12日 04:29
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

membership access control download protection file protection role-based access

下载

1.1.8 1.2.0 1.2.1

详情介绍:

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: Security Requirements

安装:

  1. Upload the folio-gatehouse folder to wp-content/plugins/
  2. Activate the plugin from Plugins → Installed Plugins
  3. Navigate to Folio Gatehouse in the sidebar
  4. Go to Settings and set your base directory (the folder inside wp-content/uploads/ that will contain all protected zones)
  5. Go to Zones and add zone rows — assign a folder slug and the roles that may access it
  6. Click Save & Sync Zones
If you are running NGINX, visit the NGINX Config tab for the server block rules you need to add before protection takes effect.

屏幕截图:

  • Logs tab — filterable, sortable access log with stats widget
  • Roles tab — create and manage custom roles with member management
  • Denial Screens tab — manage HTML denial pages and login redirect URLs
  • Settings tab — system settings, export/import, and data management
  • Front-end zone page — `[rbfa_files]` collapsible file listing with per-directory download buttons

升级注意事项:

1.2.1 Critical fix: Save & Sync Zones could silently delete zones not visible on the current page/filter view of the Zones tab. Update immediately if you're on 1.2.0, then check your Zones tab for anything that needs reconfiguring. 1.2.0 Performance: zone lookups now use a single cached query per request (zero with a persistent object cache). Also fixes uppercase folder names being lowercased on save, which caused a managed zone to keep reappearing as an "unmanaged directory". No configuration changes. 1.1.8 Compatibility fix for WordPress 5.8 (replaces str_starts_with, which requires 5.9). No database or configuration changes. 1.1.7 Public shortcodes renamed to the rbfa_ prefix: [rbfa_files], [rbfa_login_link], [rbfa_zone_link]. A migration rewrites stored zone pages and denial screens automatically; update any of these shortcodes that you typed directly into regular posts or pages. 1.1.6 Renames all plugin-managed roles from fsg_ to fgh_ prefix automatically on first load. DB migration (v1.8) handles all installs including those upgrading from wfsp_ via fsg_. 1.1.5 Renames shortcodes to fgh_ prefix. Existing fsg_ and older shortcode names remain registered as backwards-compatible aliases — no manual changes needed on existing pages. 1.1.4 Plugin renamed to Folio Gatehouse. Security fixes: nonce added to CSV export, REQUEST_URI sanitized, size_format() output escaped. 1.1.3 Role prefix changed from wfsp_ to fsg_; automatic migration runs on upgrade. Shortcodes renamed — old names remain as aliases. 1.1.2 Adds export/import, ZIP download logging, and a fix for [rbfa_zone_link] on zone pages. Safe to upgrade — no database changes. 1.1.1 UI improvements across Roles, Denial Screens, Zones, and Logs tabs plus security hardening. Safe to upgrade — no database changes.

常见问题:

Does this work with NGINX?

Yes, but you need to add server block rules manually. The plugin detects NGINX and shows a dedicated tab with ready-to-copy location blocks.

Will my files be accessible via direct URL?

Not after .htaccess rules are in place (Apache) or after you add the NGINX location blocks. All matched requests are routed through WordPress and through the plugin's access check before any file content is returned.

What happens to my data if I deactivate or delete the plugin?

Deactivation never deletes any data. Deletion only removes data if you explicitly enable that option in Settings → Data Management.

Can I show different denial messages to guests vs logged-in users?

Yes. Each zone has separate denial screen dropdowns for anonymous visitors and logged-in users who lack the required role.

Can I use this to protect files for a WooCommerce membership?

Yes. Create a custom role for your members (or use an existing WooCommerce role), assign it to a zone, and the plugin will enforce access on every file request.

Does the login redirect shortcode work with custom login pages?

Yes. Configure the login page URL per denial screen (supports absolute URLs and relative paths like /my-account).

更新日志:

1.2.1 1.2.0 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1