Hotlink Protection
Hotlink Protection
What It Does
Hotlinking occurs when other websites display your images or media files directly by linking to them on your server. This uses your bandwidth and can slow down your website for legitimate visitors.
This module blocks requests that do not come from your own domain. Covered formats include JPG, PNG, GIF, WebP, AVIF, and SVG. In expert mode, you choose what is served (a 403 error, a replacement image, or a transparent 1x1 pixel) and which search engines or social networks may still display your media.
Why It Matters
Security vulnerabilities can expose your website, user data, and business to serious risks.
By putting this security measure in place, you protect your website against threats and potential attacks. You also stop third parties from using your files as if they were theirs.
How to Use
Activate this module in the Sensitive Data section of SecuPress settings. The site must use HTTPS, otherwise the option is unavailable.
Once activated, the module works automatically.
If expert mode is on, two extra settings appear:
- Redirection Type: Error 403 (recommended), Replacement Image (the SecuPress image), or Transparent Pixel 1x1 (legacy behavior).
- Allow: check the search engines (Google, Bing, DuckDuckGo, Yahoo, Qwant, Ecosia, Brave, Yandex, Startpage) and social networks (Facebook, X, Slack, WhatsApp, LinkedIn, Discord) that should still be able to display your media.
If you encounter any issues after activation, you can temporarily deactivate the module. The module will automatically remove its protection rules when deactivated.