How to Use Prevent Direct Access S3 Integration

PDA S3 Integration extends Prevent Direct Access Gold feature by allowing you to protect files hosted on Amazon S3 bucket.

You can sync your private and confidential WordPress files to Amazon S3 seamlessly as well as protect them automatically. So no one can access the files without your permission.


Before starting, please make sure you have created an Amazon S3 bucket and configure our plugin’s settings page.

How to sync and offload files to Amazon S3

While “syncing” files still keep the files’ copies in the hosting server, “offloading” files will remove all of them.

For existing files

If your files are already in the Media Library, you can use the “Sync” button to copy them to the Amazon S3 bucket.

Sync button will display when you hover over the file title as well as opening our configuration popup under Media Library List View.

In case you have a lot of files, use Bulk Actions to sync multiple files at once.

For new file uploads

Simply enable the following options under our plugin’s settings page:

  • Enable option (1) if you want to backup file uploads in your hosting server
  • Enable options (1) and (3) if you want to store all file uploads in Amazon S3 bucket only.

How Amazon S3 Integration works

Amazon S3 secures files by making them private. That means no one can access the file URL directly, including the file’s author as well as the administrator (root user). As a result, if you protect an offloaded file, no one can see or access the file under the WordPress Admin Dashboard.

However, our plugin still allows administrators to see the file thumbnail in Media Library List View.

In order to avoid this limitation, instead of displaying their S3 private links under the Admin dashboard, we still use the server protected links with protected synced files. That’s the reason why the protected URL is not an S3 link.

When a file is embedded in content, our plugin will check the visitor’s permission and generate a signed S3 link allowing them to see the protected file in a period of time.

Lasted updated on September 23, 2020