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.
- Go to "Plugins > Add New" in the WordPress admin area.
- Search for "Hotlink File Prevention".
- Install, then Activate the plugin.
For more installation options and instructions, see
"Installing Plugins" on WordPress.org.