Hotlink File Prevention

Provides simple Hotlink File Prevention (HFP) for indivudual assets in the media library.

This plugin offers simple hotlink prevention that can be applied directly in the media library. Electric Mill have identified this issue with a number of membership plugins and private pages on WordPress – non members or those who do not have access can still potenially gain access via the url of the file

HFP offers simple hotlink prevention to individual files that can be turned on/off in the media library using .htacess in the /uploads directory

Author:Greg Perham (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:6.5.2
Plugin version:2.0.0
Added to WordPress repository:25-08-2014
Last updated:15-04-2024
Rating, %:100
Rated by:4
Plugin URI:
Total downloads:5 222
Active installs:600+
plugin download
Click to start download

Hotlink File Prevention (HFP) offers simple hotlink protection that can be turned on/off for individual files in the WordPress media library.

“Hotlinking” is when a file, such as an image or PDF, is linked to from another website or entered manually in a web browser’s location bar. HFP only allows your file to be viewed on your website.

Hotlink protection is provided via .htaccess rules in the wp-content/uploads directory.

Basic Usage

Once the HFP plugin is activated, you will have two new features in the media library:

  1. Within the Screen Options tab (list view only), check box for the “Hotlink Prevention” column.
  2. To protect a file, edit the file and scroll down to the checkbox labelled “Hotlink Protection”.

Any asset that is checked will have “Yes” displayed in the “Hotlink Prevention” column; otherwise, this column will be blank.

Note about “Open in new tab” option

When you use the “Open in new tab” option for links, WordPress adds rel="noreferrer", which effectively makes the link act like direct access, and the link will be blocked for files protected using HFP.


Screenshots
FAQ
ChangeLog