Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Enable hot Link Protection in Plesk via Backend!!!  (Read 2430 times)

0 Members and 1 Guest are viewing this topic.

sajay

  • Guest
Enable hot Link Protection in Plesk via Backend!!!
« on: February 22, 2015, 07:44:34 pm »
The hotlink_protection utility serves to configure protection from hot-linking on domains. By using this utility, you can perform the following operations:

setting up hot-linking protection on a domain
retrieve the current configuration of domain hot-linking protection

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,
=======
/usr/local/psa/bin/hotlink_protection --update domain.com -protected-extensions 'jpg;jpeg;gif;png;tiff'
=======

Retrieve information about the domain:
==============================
/usr/local/psa/bin/hotlink_protection -i domain.com
=============================

Database updated.
mysql> select * from psa.hotlink_prot;

=======================================================================