Reference for Command-Line Utilities, Plesk for Microsoft Windows
  • History of Changes
  • Command Line Utilities Overview
  • Getting Started With Command-Line Utilities
  • Plesk Utility
  • Using Command Line Utilities
    • admin.exe: Administration Panel Preferences
    • admin_alias.exe: Additional Administrator Accounts
    • anonftp.exe: Anonymous FTP Service:
    • aps.exe: Application Catalog
    • autoresponder.exe: Mail Autoresponders
    • branding_theme.exe: Plesk Branding
    • certificate.exe: SSL/TLS Certificates
    • cloning.exe: Server Cloning Settings
    • custom_plan_items.exe: Custom Plan Options
    • custombutton.exe: Custom Buttons
    • customer.exe: Customer Accounts
    • database.exe: Databases
    • database-server.exe: Database Servers
    • dns.exe: DNS Zones on Domains
    • domalias.exe: Domain Aliases
    • domain_restriction.exe: Prohibited Domain Names
    • dsn.exe: ODBC DSN Connections
    • event_handler.exe: Event Handlers
    • extension.exe: Extensions
    • firewall.exe: Firewall
    • ftpsubaccount.exe: Additional FTP Accounts
    • git: Git Repositories
    • hotlink_protection.exe: Site Content Protection from Hotlinking
    • init_conf.exe: Server Initial Configuration And Administrator’s Personal Info
    • ip_pool.exe: IP Pools
    • ipmanage.exe: IP Addresses
    • keyinfo.exe: License Key Properties
    • keyupdate.exe: License Keys Update
    • license.exe: License Keys
    • locales.exe: Plesk Locales
    • mail.exe: Mail Accounts
    • maillist.exe: Mailing Lists
    • mailserver.exe: Mail Server Options
    • migrate.exe: Mass Migration and Transfer
    • nodejs: Node.js Versions
    • notification.exe: E-mail Notification About System Events
    • panel_gui.exe: Links to Domain Registration and Certificate Purchasing Services
    • php_handler.exe: Custom PHP Handlers
    • pleskbackup.exe: Backing Up Content and Configuration
    • pleskrestore.exe: Restoration from Backups
    • poweruser.exe: Power User View
    • product_info.exe: Product Information
    • protdir.exe: Protection on Site Directories
    • reseller.exe: Reseller Accounts
    • reseller_plan.exe: Reseller Plans
    • reseller_pref.exe: Reseller Limits, Permissions, and Interface Settings
    • role.exe: User Roles
    • secret_key: Authentication in the XML API Service
    • server_dns.exe: DNS Zone Template
    • server_filesharing.exe: File Sharing
    • server_pref.exe: System and Interface Preferences
    • service_plan.exe: Hosting Plans
    • service_plan_addon.exe: Hosting Plan Add-ons
    • site.exe: Sites
    • skeleton.exe: Virtual Host Templates
    • spamassassin.exe: Spam Filtering Configuration on the Mailbox Level
    • statistics.exe: Calculating Statistics
    • subdomain.exe: Subdomains
    • subscription.exe: Subscriptions
    • subscription_settings.exe: Hosting Subscription Settings
    • tomcat.exe: Tomcat Service and Java Applications on Domains
    • traffic.exe: Traffic on Domain:
    • user.exe: Users
    • virtdir.exe: Virtual Directories
    • webuser.exe: Web User Accounts
    • wp-toolkit: WordPress Toolkit
Reference for Command-Line Utilities, Plesk for Microsoft Windows
  • Docs »
  • Using Command Line Utilities »
  • hotlink_protection.exe: Site Content Protection from Hotlinking

hotlink_protection.exe: 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

© Copyright Plesk

Built with Sphinx using a theme provided by Read the Docs.