• Partners
  • Blog
  • Contact us
Plesk
  • Solutions
    • Developers
    • Content Managers
    • Agencies
    • IT Admins
    • Infrastructure Providers
      • Shared hosters
      • VPS and Dedicated Hosters
      • Hyperscalers
  • Pricing
  • Help Center
  • More
    • Extensions
    • University
  • Try For Free

Plesk Documentation and Help Portal

  • US / English
  • Plesk Obsidian
  • Plesk Onyx
  • Archived versions
  • Documentation
  • Release Notes
  • Try Plesk Now
  • Plesk on Cloud
  • FAQ / How-To
  • GDPR Compliance
  • Cookie Policy
  • Accessibility Statement
Reference for Command-Line Utilities, Plesk for Linux

hotlink_protection: Site Content Protection from Hotlinking

The hotlink_protection utility serves to configure protection from hotlinking on domains. Use this utility to do the following:

  • Set up hotlinking protection on a domain.

  • Retrieve the current configuration of domain hotlinking protection.

Location

%plesk_cli%

Usage

hotlink_protection command [parameter] [
<option 1> <param 1>[
<option n> <param n>]]

Example

The following command enables hotlinking protection on the domain example.com with the following parameters: protected content is image files with extensions JPG, JPEG, GIF, PNG, TIFF, exception is made only for domain jonny.blogs.sample.net:

plesk bin hotlink_protection --update example.com -enabled true -protected-extensions "jpg;jpeg;gif;png;tiff" -friendly-domains jonny.blogs.sample.net

Commands

Command

Parameter

Description

Example

--update or -u

<domain name>

Changes hotlinking protection settings.

To add to the protection list (already including JPG, GIF) file extension BMP for the domain example.com:

plesk bin hotlink_protection --update example.com -protected-extensions bmp

--info or -i

<domain name>

Retrieves current hotlinking protection configuration.

To retrieve information on the hotlinking protection settings for domain example.org:

plesk bin hotlink_protection --info example.org

--help or -h

Displays help on the utility usage.

plesk bin hotlink_protection --help

Options

Option

Parameter

Description

Example

-enabled

true| false

Enables/Disables hotlinking protection.

To turn the hotlinking protection off on the domain example.com:

plesk bin hotlink_protection --update example.com -enabled false

-protected-extensions

"<ext1>;<ext2>;<...>;<ext n>"

Defines the protected file extensions.

To add to the protection list (already including JPG, GIF) file extension BMP for the domain example.com:

plesk bin hotlink_protection --update example.com -protected-extensions bmp

-friendly-domains

<domain1>;<domain2>;<...>;<domainn>

Defines friendly domains, which are allowed to hotlink the files.

To allow users of blogger.com hotlink files hosted on domain example.com:

plesk bin hotlink_protection --update example.com -friendly-domains blogger.com


Is this page helpful?

Yes No

Thank you for the feedback! Please tell us if we can improve further.

Sorry to hear that. Please tell us how we can improve.

  • Industry
    Partners:
  • Automaticc
  • Docker
  • Virtuozzo
  • Amazon
  • Microsoft
  • Microsoft Azure
  • Red Hat
  • Alibaba Cloud
Plesk

Follow us:

  • Open the Plesk page on Facebook
  • Open the Plesk feed on Twitter
  • Open the Plesk page on LinkedIn
  • Watch the Plesk videos on YouTube
  • Open the Plesk opensource projects on GitHub
COMPANY
  • About Plesk
  • Our Brand
  • EULA
  • Terms of Use
  • Legal
  • Privacy Policy
  • Impressum
PRODUCT
  • Pricing
  • Extensions
KNOWLEDGE BASE
  • Documentation
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Plesk Lifecycle Policy
PROGRAMS
  • Contributor Program
  • Partner Program
COMMUNITY
  • Blog
  • Forums
  • Plesk University
© 2026 WebPros International GmbH. All rights reserved. Plesk and the Plesk logo are trademarks of WebPros International GmbH.