WP Manifestindependent plugin directory
manifest / security / secure-pdf-protector

Secure PDF Protector

Simple tools Protect uploaded PDF files in WordPress so only logged-in users can access them.

by Jemiro Kasih · github.com/jemirokasih/secure-pdf-protector · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/jemirokasih/secure-pdf-protector/archive/refs/heads/main.zip

Protect uploaded PDF files in WordPress so only logged-in users can access them.

Features

  • Protect PDF files inside /wp-content/uploads/
  • Require WordPress login
  • Block direct PDF access
  • Compatible with Crocoblock / JetEngine
  • Lightweight and simple
  • No external dependencies

Installation

  1. Upload plugin to:

/wp-content/plugins/secure-pdf-protector/

  1. Activate plugin from WordPress admin

  2. Save permalink settings (don't change anything):

  • Settings
  • Permalinks
  • Save Changes

Apache Protection

Create .htaccess inside:

/wp-content/uploads/

Add:


<FilesMatch "\.(pdf)$">
Order Allow,Deny
Deny from all
</FilesMatch>