Title: AAM Protected Media Files
Author: AAM Plugin
Published: <strong>27 de novembre de 2019</strong>
Last modified: 5 de juny de 2025

---

Cerca extensions

![](https://ps.w.org/aam-protected-media-files/assets/banner-772x250.png?rev=2201713)

![](https://ps.w.org/aam-protected-media-files/assets/icon-256x256.png?rev=2201713)

# AAM Protected Media Files

 Per [AAM Plugin](https://profiles.wordpress.org/vasyltech/)

[Baixa](https://downloads.wordpress.org/plugin/aam-protected-media-files.1.3.2.zip)

 * [Detalls](https://ca.wordpress.org/plugins/aam-protected-media-files/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/aam-protected-media-files/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/aam-protected-media-files/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/aam-protected-media-files/#developers)

 [Suport](https://wordpress.org/support/plugin/aam-protected-media-files/)

## Descripció

Prevent direct access to the unlimited number of media library items either for 
visitors, individual users or groups of users (roles). This plugin does not modify
a physical file’s location or URL.

> The AAM Protected Media Files plugins is the official add-on to the free Advanced
> Access Manager (aka AAM). While this plugin actually manages physical access to
> the media files, AAM provides the UI interface to define access to files.

#### Few Facts

 * It requires a simple manual steps in order to configure a webserver to protect
   direct access to `/wp-content/uploads` folder. For more information, please check
   [our installation instructions](https://aamportal.com/article/protected-media-files-installation);
 * It does not change a physical file’s location, content or URL. Upon deactivation,
   everything goes back to normal;
 * It protects all the allowed by WordPress core file types and those that are extended
   with third-party plugins (e.g. `.svg`, `.sketch`, etc.). For the list of all 
   allowed extensions, check official WP documentation for the [wp_get_ext_types()](https://developer.wordpress.org/reference/functions/wp_get_ext_types/)
   core function;
 * It allows you to manage access to any media file for visitors, any individual
   user, roles or even define the default access to all media files for everybody(
   this one is available with [premium](https://aamportal.com/premium) add-on for
   AAM plugin);

For more information about how properly install and use it, refer to [our documentation](https://aamportal.com/support).

## Captures

 * [[
 * Restrict access to media file with AAM UI
 * [[
 * Restrict access to media file while editing it

## Instal·lació

 1. Upload `aam-protected-media-files` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Configure your webserver to redirect all media request to access handler as described
    in [installation guide](https://aamportal.com/article/protected-media-files-installation).

## Ressenyes

![](https://secure.gravatar.com/avatar/bc6b51998a0c6dcb776322283ea57726afc80f1815ef4ef2e7b785a8eab1a208?
s=60&d=retro&r=g)

### 󠀁[Very good protection](https://wordpress.org/support/topic/very-good-protection-8/)󠁿

 [treetex](https://profiles.wordpress.org/treetex/) 6 de gener de 2021

Tested on WordPress 5.6 and works as expected.

![](https://secure.gravatar.com/avatar/b94bf25add43ea532a2b2ba18854ef5190c5b74a8e9fbfdbbdccbea1379b6eae?
s=60&d=retro&r=g)

### 󠀁[It works like a charm!](https://wordpress.org/support/topic/it-works-like-a-charm-49/)󠁿

 [BijouLePou](https://profiles.wordpress.org/bijoulepou/) 19 de abril de 2020

Thanks for your great product!

 [ Llegiu totes les 2 ressenyes ](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/)

## Col·laboradors i desenvolupadors

«AAM Protected Media Files» és programari de codi obert. La següent gent ha col·laborat
en aquesta extensió.

Col·laboradors

 *   [ AAM Plugin ](https://profiles.wordpress.org/vasyltech/)

[Traduïu «AAM Protected Media Files» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/aam-protected-media-files)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/aam-protected-media-files/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/aam-protected-media-files/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/aam-protected-media-files/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/aam-protected-media-files/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 1.3.2

 * Fixed: Moved plugin loaded to a hook after init to be compatible with AAM premium
   add-on

#### 1.3.1

 * Fixed: Incorrectly queried media file for AAM 7 handler

#### 1.3.0

 * Added: Introduced updated to support upcoming AAM 7 version

#### 1.2.5

 * Changed: Bumped up the minimum required WP version to 5.0.0

#### 1.2.4

 * Fixed: Give the ability to serve files outside of the wp-content folder [https://github.com/aamplugin/aam-protected-media-files/issues/18](https://github.com/aamplugin/aam-protected-media-files/issues/18)
 * Fixed: Access is not correctly restricted for some paths [https://github.com/aamplugin/aam-protected-media-files/issues/17](https://github.com/aamplugin/aam-protected-media-files/issues/17)

#### 1.2.3

 * Fixed: Uncaught TypeError: mime_content_type(): Argument #1 [https://github.com/aamplugin/aam-protected-media-files/issues/16](https://github.com/aamplugin/aam-protected-media-files/issues/16)

#### 1.2.2

 * Fixed: Deprecated PHP warning [https://github.com/aamplugin/aam-protected-media-files/issues/12](https://github.com/aamplugin/aam-protected-media-files/issues/12)
 * Fixed: Handle files with encoded characters [https://github.com/aamplugin/aam-protected-media-files/issues/13](https://github.com/aamplugin/aam-protected-media-files/issues/13)
 * Fixed: NGINX hard redirect issue [https://github.com/aamplugin/aam-protected-media-files/issues/15](https://github.com/aamplugin/aam-protected-media-files/issues/15)
 * Added New: Allow the ability to override the ABSPATH [https://github.com/aamplugin/aam-protected-media-files/issues/14](https://github.com/aamplugin/aam-protected-media-files/issues/14)

#### 1.2.1

 * Changed: Renamed the 401 redirect option to “Use Access Denied Redirect For Restricted
   Media Items”

#### 1.2.0

 * Fixed Bug: Fails to serve files with special characters [https://github.com/aamplugin/aam-protected-media-files/issues/7](https://github.com/aamplugin/aam-protected-media-files/issues/7)
 * Added New: The ability to verify that file was served by the plugin [https://github.com/aamplugin/aam-protected-media-files/issues/9](https://github.com/aamplugin/aam-protected-media-files/issues/9)

#### 1.1.7

 * Fixed Bug: SVGs are blocked by default [https://github.com/aamplugin/aam-protected-media-files/issues/6](https://github.com/aamplugin/aam-protected-media-files/issues/6)

#### 1.1.6

 * Fixed Bug: Incorrectly path comparisson on Windows servers [https://github.com/aamplugin/aam-protected-media-files/issues/3](https://github.com/aamplugin/aam-protected-media-files/issues/3)
 * Added New: Allow to hook into media search for other AAM add-ons [https://github.com/aamplugin/aam-protected-media-files/issues/4](https://github.com/aamplugin/aam-protected-media-files/issues/4)

#### 1.1.5

 * Fixed Bug: URI Access service does not work on NGINX servers [https://github.com/aamplugin/advanced-access-manager/issues/33](https://github.com/aamplugin/advanced-access-manager/issues/33)

#### 1.1.4

 * Fixed Bug: Incorrectly computed file path on NGINX servers

#### 1.1.3

 * Fixed Bug: Incorrectly computed physical path to a file when website is located
   in subfolder

#### 1.1.2

 * Fixed Bug: Incorrectly returned image size [https://forum.aamplugin.com/d/448-wrong-image-sizes-are-returned-with-aam-protected-media-files-plugin-enabled](https://forum.aamplugin.com/d/448-wrong-image-sizes-are-returned-with-aam-protected-media-files-plugin-enabled)

#### 1.1.1

 * Fixed Bug: User was not redirecting properly when access was denied. Incorrectly
   handled HTTP redirecting
 * Fixed Bug: Incorrectly managed file search when media file’s name follows reserved
   naming convention

#### 1.1.0

 * Fixed Bug: AAM URI Access access options were not honored for stand-alone files
   in the `uploads` folder
 * Added New: Introduced new AAM settings that enables Access Denied Redirect service
   when access is denied to protected files

#### 1.0.0

 * Initial version

## Meta

 *  Versió **1.3.2**
 *  Darrera actualització **fa 11 mesos**
 *  Instal·lacions actives **600+**
 *  Versió del WordPress ** 4.7.0 o posterior **
 *  Provada fins a **6.8.0**
 *  Versió del PHP ** 5.6.0 o posterior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/aam-protected-media-files/)
 * Etiquetes
 * [documents](https://ca.wordpress.org/plugins/tags/documents/)[files](https://ca.wordpress.org/plugins/tags/files/)
   [media library](https://ca.wordpress.org/plugins/tags/media-library/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/aam-protected-media-files/advanced/)

## Valoracions

 5 sobre 5 estrelles.

 *  [  2 valoracions de 5 estrelles     ](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/aam-protected-media-files/reviews/)

## Col·laboradors

 *   [ AAM Plugin ](https://profiles.wordpress.org/vasyltech/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/aam-protected-media-files/)