這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

mulllhausen's secure links

外掛說明

Mulllhausen’s Secure Links lets you control the users who can download secure files from your site. Each user sees a different download URL, which is an encrypted combination of the user’s ID and the file name. If one user copies their download URL and sends it to another user then this other user will not be able to access the secure file.

Initial Setup

When you first install this plugin you should go to the admin panel page (under the tools menu) and make sure that everything is securely configured.

Usage

Once you have securely configured everything then the following shortcode becomes available:

[mulll0 allowed_users="alice anderson,bob brown,charlie clarke"]filename.pdf[/mulll0]

This will allow alice, bob and charlie to acces file filename.pdf. Each will have a different URL link to the same file. But if any of them try to copy their URL link and give it to denis then denis will not be able to access file filename.pdf.

  • Usernames that contain the comma (,) symbol will not work, since the comma is used as a separator between usernames.
  • Full usernames must be used – partial usernames are not recognized. Usernames can be found in the WordPress Admin under “Users > All Users”.
  • Make sure to type shortcodes in wordpress text-mode, not visual-mode, to avoid unwanted html entering the shortcode text and breaking it.
  • This plugin only enables secure downloads for files placed in the secure-downloads directory. If you like you can use another plugin (eg WP Easy Uploader) to upload files directly to this location through your web-browser.
  • File paths should not be included within the shortcode – only the file name (basename) is necessary.
  • Usernames listed within the allowed_users attribute of the shortcode are case insensitive.
  • Administrator level users are able to download all links by default.
  • Make sure not to upload files that have spaces at the start or end of the filename since this plugin strips whitespace from the filename specified in the shortcode.
    TODOs

    • Enable the admin to change the secure URL via the plugin admin panel (requires sanitization)
    • Enable the admin to change the secure directory name via the plugin admin panel (requires sanitization)
    • Include a insert secure link icon above the wordpress editor. This would open a popup window where users and files could be selected. This would eliminate typos in manually written shortcodes.
    • Make a pretty banner image for the wordpress.org/plugins page.

安裝方式

  1. To install from the Plugins repository:

    • In the WordPress Admin, go to “Plugins > Add New.”
    • Type “mulllhausen’s secure links” in the “Search” box and click “Search Plugins.”
    • Locate “mulllhausen’s secure links” in the list and click “Install Now.”
  2. To install manually:

    • Download Mulllhausen’s Secure Links plugin from https://wordpress.org/plugins/mulllhausens-secure-links
    • In the WordPress Admin, go to “Plugins > Add New.”
    • Click the “Upload” link at the top of the page.
    • Browse for the zip file, select and click “Install.”
  3. In the WordPress Admin, go to “Plugins > Installed Plugins.” Locate “mulllhausen’s secure links” in the list and click “Activate.”

常見問題集

Can I change the secure downloads URL as it appears in the browser when I click on a link?

Yes, you can do this by changing the value of constant mulll0_secure_uri at the top of file wp-content/plugins/mulll-secure-links/mulll0.php.

Can I change the real location of the secure downloads directory on the server?

Yes, you can do this by changing the value of constant mulll0_secure_dir at the top of file wp-content/plugins/mulll-secure-links/mulll0.php. The secure downloads directory is always located in the wp-content/uploads/ directory. You can rename this directory at any time, just remember to copy all files from the old directory into this new directory. You will see a warning if you do not secure the new directory.

The plugin is claiming that the file I uploaded does not exist, even though I have uploaded it

You need to upload files to the secure directory as specified on the admin page.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈mulllhausen's secure links〉的開發相關工作。

參與者

將〈mulllhausen's secure links〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

  • 1.1 – bugfix.
    • 1.0 – Initial release.