Step 1. Log in to the cPanel.
Step 2. Look for Hotlink Protection option in Security section and click on it.
Step 3. Allow specific sites to hotlink to your website, Add website URL's in URL's To Allow Access menu. To block direct access to the specific types of files.Add those file extensions in Block direct access for the following extensions in Text box and make sure while adding multiple extensions it must be comma separated.
Step 4. Now click on Enable to apply changes.
Step 5. Hotlink Protection has been enabled.
Congratulations!