Drupal is a registered trademark of Dries Buytaert

The Deindex Unpublished Files module ensures that files associated with unpublished media are not publicly accessible. It achieves this either by adding a prefix to the file URL or by moving the file to the private files directory (private://unpublishedfiles), helping protect unpublished files from being exposed or indexed by search engines.

The module functions only with media types that include a file field.

Installation

Place the deindex_unpublished_files module folder into modules/contrib.

Clear Drupal caches if necessary.

Visit the configuration form at:
Configuration → Media → Unpublished files settings (if the module is enabled).

Configuration

Choose the method to make unpublished media files inaccessible:

Prefix method: Adds a URL prefix to prevent access.

Private files method: Moves the file to a private directory (private://unpublishedfiles).

Activity

Total releases
9
First release
Sep 2025
Latest release
3 months ago
Release cadence
6 days
Stability
78% stable

Release Timeline

Releases

Version Type Release date
1.0.6 Stable Nov 12, 2025
1.0.5 Stable Sep 26, 2025
1.0.4 Stable Sep 26, 2025
1.1.x-dev Dev Sep 25, 2025
1.0.3 Stable Sep 24, 2025
1.0.2 Stable Sep 24, 2025
1.0.1 Stable Sep 24, 2025
1.0.0 Stable Sep 24, 2025
1.0.x-dev Dev Sep 24, 2025