Title: Secure Private Files
Author: Ankit Patel
Published: <strong>Yanvar 23, 2026</strong>
Last modified: Fevral 11, 2026

---

Search plugins

![](https://ps.w.org/ankit-secure-private-files/assets/banner-772x250.png?rev=3459085)

![](https://ps.w.org/ankit-secure-private-files/assets/icon-256x256.png?rev=3445564)

# Secure Private Files

 By [Ankit Patel](https://profiles.wordpress.org/ankitpatel1578/)

[Download](https://downloads.wordpress.org/plugin/ankit-secure-private-files.1.0.3.zip)

 * [Details](https://uz.wordpress.org/plugins/ankit-secure-private-files/#description)
 * [Reviews](https://uz.wordpress.org/plugins/ankit-secure-private-files/#reviews)
 *  [Installation](https://uz.wordpress.org/plugins/ankit-secure-private-files/#installation)
 * [Development](https://uz.wordpress.org/plugins/ankit-secure-private-files/#developers)

 [Support](https://wordpress.org/support/plugin/ankit-secure-private-files/)

## Description

**Secure Private Files** allows you to securely manage and share private files with
selected users or user roles in WordPress.

Files are protected using **unique token-based URLs**, ensuring they cannot be accessed
without proper permission. You can define **who can download each file**, set an**
expiry date**, and track **download activity**.

This plugin is ideal for:
 – Membership sites – Client portals – Secure document
sharing – Restricted downloads – Private resources for logged-in users

### Key Features

 * Secure token-based file access (no public URLs)
 * Assign files to **specific users**
 * Allow access by **user roles**
 * Optional **expiry date** for each file
 * Logged-in user verification
 * Download activity logging (user, IP, date)
 * Dedicated **Private Files** custom post type
 * Media library integration for file selection
 * AJAX-powered user search (Select2)
 * Frontend shortcode to list accessible files
 * Works with any WordPress theme
 * No third-party dependency required

### How It Works

 1. Admin creates a **Private File** post
 2. Uploads or selects a file from Media Library
 3. Assigns allowed users and/or roles
 4. (Optional) Sets an expiry date
 5. Plugin generates a secure download token
 6. Authorized users can download the file using the secure link

### Shortcodes

**List logged-in user’s available private files**
 [secure_files]

Displays only files the current user is allowed to access.

## Screenshots

 * [[
 * Private Files custom post type in admin

## Installation

 1. Upload the plugin folder to `/wp-content/plugins/`
 2. Activate **Secure Private Files**
 3. Go to **Private Files** in the admin menu
 4. Add a new Private File
 5. Select file, users, roles, and expiry
 6. Use the shortcode on any page if needed

## FAQ

### Is login required to download files?

Yes. Only logged-in users with permission can access files.

### Can I restrict files by user role?

Yes. You can allow access by user roles and/or specific users.

### Are files accessible via direct URL?

No. Files are protected using secure token-based URLs.

### Does the plugin log downloads?

Yes. Each download logs the user, IP address, and date.

### Will this work with any theme?

Yes. It works independently of themes and page builders.

### Is WooCommerce required?

No. WooCommerce is NOT required.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Secure Private Files” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Ankit Patel ](https://profiles.wordpress.org/ankitpatel1578/)
 *   [ Hardik Raval ](https://profiles.wordpress.org/hardik2221/)

[Translate “Secure Private Files” into your language.](https://translate.wordpress.org/projects/wp-plugins/ankit-secure-private-files)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ankit-secure-private-files/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ankit-secure-private-files/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ankit-secure-private-files/)
by [RSS](https://plugins.trac.wordpress.org/log/ankit-secure-private-files/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * Short Code Impovements
 * Few minor bugfix and improvements

#### 1.0.2

 * Code Impovements
 * Language POT
 * Few minor bugfix and improvements

#### 1.0.1

 * slug update

#### 1.0

 * Initial release
 * Secure token-based downloads
 * User and role-based access control
 * Expiry date support
 * Download logs
 * Frontend shortcode support

## Meta

 *  Version **1.0.3**
 *  Last updated **2 oy ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/ankit-secure-private-files/)
 * Tags
 * [access-control](https://uz.wordpress.org/plugins/tags/access-control/)[download manager](https://uz.wordpress.org/plugins/tags/download-manager/)
   [file manager](https://uz.wordpress.org/plugins/tags/file-manager/)[membership](https://uz.wordpress.org/plugins/tags/membership/)
   [security](https://uz.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://uz.wordpress.org/plugins/ankit-secure-private-files/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ankit-secure-private-files/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ankit-secure-private-files/reviews/)

## Contributors

 *   [ Ankit Patel ](https://profiles.wordpress.org/ankitpatel1578/)
 *   [ Hardik Raval ](https://profiles.wordpress.org/hardik2221/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ankit-secure-private-files/)