Installation 

Prerequisites 

Version 14.3.12 requires PHP 8.2.15 or newer within the PHP 8.2 release line and TYPO3 14. The TER package declares TYPO3 14.3.12 through 14.99.99. Composer dependencies include the required TYPO3 packages and firebase/php-jwt 7.2.

Mandatory steps 

  1. Install maagit/maagitseclink with Composer and activate extension key maagitseclink through the normal deployment process.
  2. Confirm that the TYPO3 site base is an absolute URL.
  3. Open Sites > Setup, edit every site that uses secure downloads and add the site set MaagIT Secure Link to its site-set dependencies. Installing the extension alone does not activate the set for a site.
  4. Open Sites > Setup > Settings, edit the settings of each site and select its access-denied page below MaagIT Secure Link > Pages. TYPO3 stores the selected page UID in the site-specific settings.yaml file.
  5. Protect the dedicated download directory against direct HTTP access as described in Protect the download directory.
  6. Integrate link generation as described in Usage.

No database schema update, backend record or Scheduler task is supplied. The frontend middleware is registered automatically.

If site configuration files or the site set were changed outside the TYPO3 backend, flush all caches before opening the site settings editor. Site sets and resolved site settings are cached. See Error redirect page for the setting and its fallback behaviour.

Protect the download directory 

Files below TYPO3's public directory, for example below fileadmin, are otherwise still available through their normal public URL. Store all files handled by this extension in a dedicated directory and deny direct HTTP access to the complete directory. Do not restrict only a list of file extensions: an unlisted extension or a file without an extension would remain public.

The web server restriction does not change filesystem permissions. The PHP process serving TYPO3 must retain read access so that the extension can open the file after validating the signed URL.

Apache 

For Apache 2.4, place a .htaccess file in the protected directory, for example public/fileadmin/secure-downloads/.htaccess:

Require all denied
Copied!

Apache must be configured to process this directive, for example with AllowOverride AuthConfig or AllowOverride All for that directory. Do not wrap the directive in <IfModule>: a missing authorization module or an invalid server configuration should fail visibly instead of leaving files public. If overrides are disabled, put the equivalent Require all denied inside a <Directory> block in the Apache virtual host.

nginx 

nginx ignores .htaccess files. Add a location to the applicable server configuration and adapt the URL path to the dedicated directory:

location ^~ /fileadmin/secure-downloads/ {
    deny all;
}
Copied!

Reload nginx after validating the configuration. This location blocks only the direct public file URL. Secure URLs below /download/sdl- continue to be handled by TYPO3, which reads the file from the filesystem and returns it in a separate response.

Verification 

Request a file through both paths after deployment. The direct URL must return HTTP 403, while a fresh signed URL must return HTTP 200:

curl -s -o /dev/null -w '%{http_code}\n' \
    https://example.org/fileadmin/secure-downloads/example.pdf
curl -s -o /dev/null -w '%{http_code}\n' \
    'https://example.org/download/sdl-<token>/example.pdf'
Copied!

Repeat the test with an expired URL; it must follow the configured failure path instead of returning the file.

TypoScript 

The static TypoScript contains only an empty plugin.tx_maagitseclink block; its constants file is empty. It has no operative effect and is not required for 14.3.12. Project integration belongs in the site package. Shipped setup must not be copied into root-template Constants or Setup fields.