Title: Zodan Authorized Downloads
Author: Marten Moolenaar
Published: <strong>4. nowembra 2025</strong>
Last modified: 26. septembra 2026

---

Tykače pytać

![](https://ps.w.org/z-authorized-downloads/assets/banner-772x250.jpg?rev=3433688)

![](https://ps.w.org/z-authorized-downloads/assets/icon-256x256.png?rev=3389808)

# Zodan Authorized Downloads

 Wot [Marten Moolenaar](https://profiles.wordpress.org/martenmoolenaar/)

[Sćahnyć](https://downloads.wordpress.org/plugin/z-authorized-downloads.1.2.7.zip)

 * [Podrobnosće](https://hsb.wordpress.org/plugins/z-authorized-downloads/#description)
 * [Pohódnoćenja](https://hsb.wordpress.org/plugins/z-authorized-downloads/#reviews)
 *  [Instalacija](https://hsb.wordpress.org/plugins/z-authorized-downloads/#installation)
 * [Wuwiće](https://hsb.wordpress.org/plugins/z-authorized-downloads/#developers)

 [Podpěra](https://wordpress.org/support/plugin/z-authorized-downloads/)

## Wopisanje

This plugin allows site admins to protect specific attachment file types (e.g. Pdf,
Doc(x)) from direct access. Instead, the files are served through WordPress, allowing
you to check if a user is logged in or has the required permissions before granting
access.

**Features:**
 * Adds a checkbox to media attachments to mark them as „Authorized
only“. * Creates an internal page and rewrite rules to intercept requests to protected
file types. * Checks user login status (or other custom logic you add) before serving
files. * Provides a settings page to specify which file types should be protected.

### License

This plugin is licensed under GPLv2 or later.

## Fota wobrazowki

[⌊Settings page where you define protected file types and user roles.⌉⌊Settings 
page where you define protected file types and user roles.⌉[

Settings page where you define protected file types and user roles.

[⌊Media modal showing the "Authorized only" checkbox.⌉⌊Media modal showing the "
Authorized only" checkbox.⌉[

Media modal showing the „Authorized only“ checkbox.

## Instalacija

 1. Upload the plugin files to `/wp-content/plugins/z-authorized-downloads/` or install
    via the Plugins screen.
 2. Activate the plugin through the ‚Plugins‘ screen.
 3. Go to **Settings  Authorized Downloads** to set which file types should be protected
    and which roles can download protected files
 4. Mark attachments as „Authorized only“ in the Media Library to restrict access.
 5. Optionally, override the default permitted roles per attachment in the Media Library.

## HSP

### Can I customize the authorization logic?

Yes. The plugin checks if the user is logged in by default, but you can extend `
handle_protected_request()` to add role checks or other conditions.

### What happens to unprotected files?

Files that are not marked as „Authorized only“ will still be directly accessible
by URL.

### Do I need to manually edit .htaccess?

No. The plugin will manage the `.htaccess` rules for you when you save settings.

### Do you have plans to improve the plugin?

We currently have on our roadmap:
 * Make the plugin pluggable – adding hooks for
certain checks. * Adding a custom capability to manage which users can edit settings(
both general and per file). * Adding more translations.

If you have a feature suggestion, send us an email at [plugins@zodan.nl](https://hsb.wordpress.org/plugins/z-authorized-downloads/plugins@zodan.nl?output_format=md).

## Pohódnoćenja

Za tutón tykač pohódnoćenja njejsu.

## Sobuskutkowarjo a wuwiwarjo

„Zodan Authorized Downloads“ je softwara wotewrjeneho žórła. Slědowacy ludźo su 
k tutomu tykačej přinošowali.

Sobuskutkowarjo

 *   [ Marten Moolenaar ](https://profiles.wordpress.org/martenmoolenaar/)
 *   [ Zodan ](https://profiles.wordpress.org/zodannl/)

„Zodan Authorized Downloads“ je so do 1 rěče přełožił. Dźakujemy so [přełožowarjam](https://translate.wordpress.org/projects/wp-plugins/z-authorized-downloads/contributors)
za jich přinoški.

[Přełožće „Zodan Authorized Downloads“ do swojeje rěče.](https://translate.wordpress.org/projects/wp-plugins/z-authorized-downloads)

### Na wuwiću zajimowany?

[Přehladajće kod](https://plugins.trac.wordpress.org/browser/z-authorized-downloads/),
hladajće do [SVN-repozitorija](https://plugins.svn.wordpress.org/z-authorized-downloads/)
abo abonujće [wuwiwanski protokol](https://plugins.trac.wordpress.org/log/z-authorized-downloads/)
přez [RSS](https://plugins.trac.wordpress.org/log/z-authorized-downloads/?limit=100&mode=stop_on_copy&format=rss).

## Protokol změnow

#### 1.2.7

 * Fixed typo 🙄

#### 1.2.6

 * Name changes

#### 1.2.5

 * Protected file are now visibly marked in the Media Library
 * Added download log

#### 1.2.4

 * Updated sanitizing method for array of $_POST values to satisfy plugin check

#### 1.2.3

 * Added help text on the settings page.
 * Added some screenshots.

#### 1.2.2

 * Small adjustments to the rendering of the meta fields to have both versions (
   meta-box and modal) use the same code.

#### 1.2.1

 * Fixed Bug in handling the meta-box update function where changes were not saved
   correctly.

#### 1.2.0

 * Renamed plugin to Zodan Authorized Downloads.
 * Added default Allowed roles to download files.
 * Added file-specific Allowed roles to the media file meta-box.

#### 1.1.1

 * Added settings page for specifying protected file types.
 * Improved security: uses WP_Filesystem for file reads.
 * Added caching to database lookups for performance.

#### 1.0.0

 * Initial release with meta box and basic rewrite rules.

## Meta

 *  Version **1.2.7**
 *  Last updated **1 tydźeń**
 *  Active installations **10+**
 *  WordPress version ** 5.5 abo nowši **
 *  Tested up to **7.1.2**
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/z-authorized-downloads/) a [English (US)](https://wordpress.org/plugins/z-authorized-downloads/).
 *  [Přełožće do swojeje rěče](https://translate.wordpress.org/projects/wp-plugins/z-authorized-downloads)
 * Tags
 * [attachments](https://hsb.wordpress.org/plugins/tags/attachments/)[authorization](https://hsb.wordpress.org/plugins/tags/authorization/)
   [downloads](https://hsb.wordpress.org/plugins/tags/downloads/)[files](https://hsb.wordpress.org/plugins/tags/files/)
   [protected downloads](https://hsb.wordpress.org/plugins/tags/protected-downloads/)
 *  [Rozšěrjeny napohlad](https://hsb.wordpress.org/plugins/z-authorized-downloads/advanced/)

## Pohódnoćenja

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/z-authorized-downloads/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/z-authorized-downloads/reviews/)

## Sobuskutkowarjo

 *   [ Marten Moolenaar ](https://profiles.wordpress.org/martenmoolenaar/)
 *   [ Zodan ](https://profiles.wordpress.org/zodannl/)

## Podpěra

Chceće něšto prajić? Trjebaće pomoc?

 [Forum pomocy pokazać](https://wordpress.org/support/plugin/z-authorized-downloads/)