{"id":803,"date":"2024-12-02T22:42:05","date_gmt":"2024-12-02T22:42:05","guid":{"rendered":"https:\/\/webhostingdelhi.net.in\/tutorials\/?p=803"},"modified":"2024-12-02T22:42:08","modified_gmt":"2024-12-02T22:42:08","slug":"set-hotlink-protection-in-plesk","status":"publish","type":"post","link":"https:\/\/webhostingdelhi.net.in\/tutorials\/set-hotlink-protection-in-plesk\/","title":{"rendered":"How to set hotlink protection in Plesk ?"},"content":{"rendered":"\n<p>Hotlink protection in <a href=\"https:\/\/www.plesk.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Plesk<\/a> to prevent unauthorized users from embedding your content, such as images or videos, directly on their websites. This guide explains how to enable hotlink protection in Plesk for your <a href=\"https:\/\/www.webhostingdelhi.net.in\/windows-web-hosting-delhi\/\" rel=\"nofollow\">website in Plesk<\/a>. Follow these steps carefully to ensure your website&#8217;s content remains secure.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#what-is-hotlink-protection\">What Is Hotlink Protection?<\/a><\/li><li><a href=\"#prerequisites\">Prerequisites<\/a><\/li><li><a href=\"#step-by-step-guide-to-enable-hotlink-protection\">Step-by-Step Guide to Enable hotlink protection in Plesk<\/a><ul><li><a href=\"#step-1-log-in-to-plesk\">Step 1: Log In to Plesk<\/a><\/li><li><a href=\"#step-2-locate-the-hotlink-protection-tool\">Step 2: Locate the Hotlink Protection Tool<\/a><\/li><li><a href=\"#step-3-configure-hotlink-protection-in-plesk\">Step 3: Configure Hotlink protection in Plesk<\/a><\/li><li><a href=\"#step-4-allow-authorized-domains\">Step 4: Allow Authorized Domains<\/a><\/li><li><a href=\"#step-5-save-and-apply-changes\">Step 5: Save and Apply Changes<\/a><\/li><\/ul><\/li><li><a href=\"#testing-hotlink-protection\">Testing Hotlink Protection<\/a><\/li><li><a href=\"#troubleshooting-tips\">Troubleshooting Tips<\/a><\/li><li><a href=\"#additional-considerations\">Additional Considerations<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-is-hotlink-protection\">What Is Hotlink Protection?<\/h3>\n\n\n\n<p>Hotlinking occurs when another website directly links to files (like images or videos) hosted on your server. This not only uses your bandwidth but also can expose your resources to unauthorized use. Enabling hotlink protection ensures that only specified domains can use your hosted files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access to your Plesk control panel.<\/li>\n\n\n\n<li>Administrative privileges for your hosting account.<\/li>\n\n\n\n<li>A clear list of domains authorized to access your files.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-by-step-guide-to-enable-hotlink-protection\">Step-by-Step Guide to Enable hotlink protection in Plesk<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"step-1-log-in-to-plesk\">Step 1: Log In to Plesk<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your browser and navigate to the Plesk control panel URL provided by your hosting provider.<\/li>\n\n\n\n<li>Enter your username and password.<\/li>\n\n\n\n<li>Click <strong>Log In<\/strong> to access your dashboard.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"433\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/06\/image-11.png\" alt=\"Check Usage Statistics in Plesk\" class=\"wp-image-510\" style=\"width:322px;height:auto\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/06\/image-11.png 390w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/06\/image-11-270x300.png 270w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-2-locate-the-hotlink-protection-tool\">Step 2: Locate the Hotlink Protection Tool<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the Plesk dashboard, navigate to <strong>Websites &amp; Domains<\/strong>.<\/li>\n\n\n\n<li>Select the domain where your website is hosted.<\/li>\n\n\n\n<li>Scroll down and look for <strong>Hotlink Protection<\/strong> in plesk or similar settings. If you don\u2019t see it, it might be under <strong>security<\/strong> section.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"627\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/Hotlink-protection.png\" alt=\"\" class=\"wp-image-804\" style=\"width:583px;height:auto\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/Hotlink-protection.png 962w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/Hotlink-protection-300x196.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/Hotlink-protection-768x501.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-3-configure-hotlink-protection-in-plesk\">Step 3: Configure Hotlink protection in Plesk <\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on <strong>Hotlink Protection<\/strong> to open its configuration.<\/li>\n\n\n\n<li>Enable the option by checking the box labeled &#8220;<strong>Enable Hotlink Protection<\/strong>.&#8221;<\/li>\n\n\n\n<li>Specify the types of files you want to protect. For example:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>.jpg<\/code>, <code>.png<\/code>, <code>.gif<\/code> for images<\/li>\n\n\n\n<li><code>.mp4<\/code>, <code>.avi<\/code> for videos<\/li>\n\n\n\n<li>Any other file extensions relevant to your website.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"395\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/65212-hotlink-protection.webp\" alt=\"hotlink protection in Plesk\" class=\"wp-image-805\" style=\"width:602px;height:auto\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/65212-hotlink-protection.webp 746w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/65212-hotlink-protection-300x159.webp 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-4-allow-authorized-domains\">Step 4: Allow Authorized Domains<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add your own domain (e.g., <code>anydomain.com<\/code>) to the list of allowed domains.<\/li>\n\n\n\n<li>If you want other trusted domains to access your files, list them here as well. For example:<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>example.com<\/code><\/li>\n\n\n\n<li><code>trustedpartner.com<\/code><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the format <code>*.domain.com<\/code> to allow subdomains or <code>domain.com<\/code> for specific domains.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"207\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/image.png\" alt=\"\" class=\"wp-image-806\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/image.png 686w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/12\/image-300x91.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-5-save-and-apply-changes\">Step 5: Save and Apply Changes<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>After configuring the settings, click <strong>Save <\/strong>option to save the changes.<\/li>\n\n\n\n<li>Plesk will update the server configuration to enforce hotlink protection.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"testing-hotlink-protection\">Testing Hotlink Protection<\/h3>\n\n\n\n<p>After enabling hotlink protection, verify its effectiveness:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit your website and check if the images and videos load correctly.<\/li>\n\n\n\n<li>Try to access one of your protected files directly from an unauthorized domain.<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For example, embed an image link from your website on another website and see if it displays.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>If the file does not load or redirects as configured, your hotlink protection is working.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"troubleshooting-tips\">Troubleshooting Tips<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Files Not Loading on Your website:<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure your domain is listed in the authorized domains section.<\/li>\n\n\n\n<li>Double-check file types in the configuration.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Hotlink Protection Not Working:<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clear your browser cache and try again.<\/li>\n\n\n\n<li>Check server logs for errors or misconfigurations.<\/li>\n\n\n\n<li>Ensure hotlink protection is not overridden by custom <code>.htaccess<\/code> rules.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Custom Redirect URL Not Working:<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify the URL entered is correct and accessible.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"additional-considerations\">Additional Considerations<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Impact on SEO:<\/strong> Ensure hotlink protection does not block legitimate bots like <a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/google-common-crawlers\" rel=\"nofollow noopener\" target=\"_blank\">Google\u2019s crawler<\/a>.<\/li>\n\n\n\n<li><strong>Content Sharing:<\/strong> If you want certain users to embed your files, explicitly authorize their domains.<\/li>\n\n\n\n<li><strong>Server Performance:<\/strong> Enabling hotlink protection reduces unnecessary bandwidth usage and improves server performance.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n\n<p>Setting up hotlink protection in Plesk is a straightforward process that helps secure your website\u2019s resources. By following this guide, you can prevent unauthorized usage of your content, save bandwidth, and maintain control over your files. Regularly review and update your settings to adapt to changes in your website\u2019s requirements or partnerships.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hotlink protection in Plesk to prevent unauthorized users from embedding your content, such as images or videos, directly on their websites. This guide explains how to enable hotlink protection in Plesk for your website in Plesk. Follow these steps carefully to ensure your website&#8217;s content remains secure. What Is Hotlink Protection? Hotlinking occurs when another [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":811,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[78],"class_list":["post-803","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plesk","tag-hotlink-protection-in-plesk"],"_links":{"self":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/comments?post=803"}],"version-history":[{"count":5,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/803\/revisions"}],"predecessor-version":[{"id":812,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/803\/revisions\/812"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/media\/811"}],"wp:attachment":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/media?parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/categories?post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/tags?post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}