| 开发者 | aluleth |
|---|---|
| 更新时间 | 2026年11月26日 12:28 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[aluleth_video id="…"] shortcode.
A player that stays light
blocks/player/editor.js) is plain JavaScript (wp.element.createElement, no JSX), and assets/player.js and assets/admin.js are not minified.
The only compiled file is a third-party library, included unmodified:
assets/vendor/hls.light.min.js), by Dailymotion and the hls.js contributors, Apache-2.0 licence (assets/vendor/hls-LICENSE.txt). It plays HLS streams in browsers that cannot play them natively, and loads only for HLS videos. Source code and build steps: github.com/video-dev/hls.js.The easy ways are closed: there is no address in the page, no download button, no right-click menu, and a copied link does not play elsewhere or later. A determined person can still record the screen; no web player can stop that.
Nginx does not read the .htaccess file that closes the protected folder. Add the rule shown in Aluleth › Video › Settings to your site's Nginx configuration (or ask your host), reload Nginx, then click "Check the protected folder". Until the check passes, files are not protected (the video screen says so).
The site asks itself for the test files over the web. Some hosts block these requests, or answer with an error or a redirect: the folder is then not taken as closed and no file is protected. Open the addresses shown under "Check it yourself" in the settings in a private window: each one must give an error page (403 or 404). Then ask your host to allow the site to reach its own address, and check again. Developers who checked the folder another way can use the filter aluleth_video/folder_closed.
The check asks for the test files the way WordPress makes any request: over HTTPS, the certificate of the site must be valid for its address and trusted. A self-signed certificate, one made for another name or an expired one gives no clear answer, and no file is protected, because the answers could come from another server. Give the site a valid certificate (most hosts offer a free one), then check again. If another plugin turns off the verification of certificates, the answers are not trusted either. You can still open the addresses shown under "Check it yourself" in a private window: each one must give an error page (403 or 404).
By default WordPress sends protected files in pieces of 4 MB. If your host supports X-Sendfile (Apache with mod_xsendfile, LiteSpeed) or X-Accel-Redirect (Nginx), choose it in the settings: the web server then sends the files itself.
Not before they press play. The page shows your own copy of the picture; the YouTube or Vimeo player loads only after the click.