{"id":190,"date":"2024-02-16T13:40:02","date_gmt":"2024-02-16T13:40:02","guid":{"rendered":"https:\/\/webhostingdelhi.net.in\/tutorials\/?p=190"},"modified":"2024-02-16T13:46:35","modified_gmt":"2024-02-16T13:46:35","slug":"set-hotlink-protection-in-cpanel","status":"publish","type":"post","link":"https:\/\/webhostingdelhi.net.in\/tutorials\/set-hotlink-protection-in-cpanel\/","title":{"rendered":"How to Set Up Hotlink Protection in cPanel"},"content":{"rendered":"\n<p>Hotlink protection is a feature that prevents other websites from directly linking to files on your website, such as images. This helps to reduce bandwidth usage and prevents others from using your resources without permission. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"579\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink.jpg\" alt=\"Hotlink Protection in cPanel\" class=\"wp-image-193\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink.jpg 657w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink-300x264.jpg 300w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Here&#8217;s a step-by-step guide<\/h2><nav><ul><li class=\"\"><a href=\"#log-in-to-c-panel\">Log in to cPanel: <\/a><\/li><li class=\"\"><a href=\"#navigate-to-hotlink-protection-in-c-panel\">Navigate to Hotlink Protection in cPanel:<\/a><\/li><li class=\"\"><a href=\"#enable-hotlink-protection\">Enable Hotlink Protection:<\/a><\/li><li class=\"\"><a href=\"#define-allowed-referrers\">Define Allowed Referrers:<\/a><\/li><li class=\"\"><a href=\"#define-blocked-referrers-optional\">Define Blocked Referrers (Optional):<\/a><\/li><li class=\"\"><a href=\"#set-up-redirect-optional\">Set up Redirect (Optional):<\/a><\/li><li class=\"\"><a href=\"#click-on-submit\">Click on &#8220;Submit&#8221;:<\/a><\/li><li class=\"\"><a href=\"#test-the-hotlink-protection-in-c-panel\">Test the Hotlink Protection in cPanel :<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"log-in-to-c-panel\"><strong>Log in to cPanel:<\/strong> <\/h2>\n\n\n\n<p>Access your cPanel account using your username and password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"465\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/01\/login.png\" alt=\"\" class=\"wp-image-143\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/01\/login.png 950w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/01\/login-300x147.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/01\/login-768x376.png 768w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"navigate-to-hotlink-protection-in-c-panel\"><strong>Navigate to Hotlink Protection in cPanel:<\/strong><\/h2>\n\n\n\n<p>Once logged in, look for the &#8220;Security&#8221; section in cPanel.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"324\" data-id=\"194\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink-protection-cpanel-1024x324.png\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink-protection-cpanel-1024x324.png 1024w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink-protection-cpanel-300x95.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink-protection-cpanel-768x243.png 768w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/hotlink-protection-cpanel.png 1492w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>In the Security section, you should find the &#8220;Hotlink Protection&#8221; option.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"enable-hotlink-protection\"><strong>Enable Hotlink Protection:<\/strong><\/h2>\n\n\n\n<p>Click on the &#8220;Hotlink Protection&#8221; icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"274\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-1024x274.png\" alt=\"\" class=\"wp-image-195\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-1024x274.png 1024w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-300x80.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-768x206.png 768w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-1536x412.png 1536w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image.png 1858w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In the Hotlink Protection interface, you&#8217;ll see an option to enable or disable Hotlink Protection in cPanel. Click on &#8220;Enable.&#8221;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"define-allowed-referrers\"><strong>Define Allowed Referrers:<\/strong><\/h2>\n\n\n\n<p>You need to specify which websites are allowed to hotlink to your content. Enter the domains that you want to allow in the &#8220;URLs to allow access&#8221; section. You can specify multiple domains, separated by commas.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-2-1024x467.png\" alt=\"\" class=\"wp-image-197\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-2-1024x467.png 1024w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-2-300x137.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-2-768x350.png 768w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-2.png 1188w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If you want to allow hotlinking from all subdomains of a domain, you can use the wildcard character (*) like this: <code>*.example.com<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"define-blocked-referrers-optional\"><strong>Define Blocked Referrers (Optional):<\/strong><\/h2>\n\n\n\n<p>In the &#8220;Block direct access for these extensions&#8221; section, you can specify file types that you want to block from being hotlinked. This can include common image file extensions like .jpg, .png, .gif, etc.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"170\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-3.png\" alt=\"\" class=\"wp-image-198\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-3.png 796w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-3-300x64.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-3-768x164.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/figure>\n\n\n\n<p>You can add additional file types by separating them with commas.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"set-up-redirect-optional\"><strong>Set up Redirect (Optional):<\/strong><\/h2>\n\n\n\n<p>You have the option to set up a redirect for blocked requests. This means that if someone tries to hotlink to your content, they will be redirected to a specified URL. You can enter the URL in the &#8220;Redirect request to this URL&#8221; field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"205\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-4.png\" alt=\"\" class=\"wp-image-199\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-4.png 860w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-4-300x72.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-4-768x183.png 768w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"click-on-submit\"><strong>Click on &#8220;Submit&#8221;:<\/strong><\/h2>\n\n\n\n<p>After configuring the settings, click on the &#8220;Submit&#8221; or &#8220;Save&#8221; button to apply the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"240\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-5-1024x240.png\" alt=\"\" class=\"wp-image-200\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-5-1024x240.png 1024w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-5-300x70.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-5-768x180.png 768w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/02\/image-5.png 1090w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"test-the-hotlink-protection-in-c-panel\"><strong>Test the Hotlink Protection in cPanel<\/strong> <strong>:<\/strong><\/h2>\n\n\n\n<p>After enabling Hotlink Protection in cPanel, test it by trying to access one of your images directly from a browser or by attempting to hotlink from an unauthorized website.<\/p>\n\n\n\n<p>Hotlink Protection in cPanel feature is designed to safeguard your website&#8217;s resources by preventing unauthorized external websites from directly linking to your files, such as images or media. By enabling Hotlink Protection through the cPanel interface, you can specify a list of allowed referrers, which are the domains permitted to hotlink to your content.<\/p>\n\n\n\n<p>This Protection is a crucial feature for website owners seeking to secure their online assets and manage resource consumption effectively. By activating Hotlink Protection in cPanel interface, users gain a robust defense mechanism against unauthorized external websites attempting to directly link to their files, such as images, videos, or other media content. This Hotlink Protection in cPanel is particularly valuable in preventing content theft, conserving bandwidth, and maintaining the integrity of a website&#8217;s resources.<\/p>\n\n\n\n<p>In addition to Hotlink Protection in cPanel, websites often implement various security measures to fortify their online presence against potential threats and unauthorized access. One commonly employed security feature is SSL\/TLS encryption, which ensures secure data transmission between the user&#8217;s browser and the web <a href=\"https:\/\/www.webhostingdelhi.net.in\/web-hosting-delhi\/\">server<\/a>, protecting sensitive information from interception.<\/p>\n\n\n\n<p>Web Application Firewalls (WAFs) are another critical layer of defense. These firewalls analyze and filter HTTP traffic between a web application and the Internet, identifying and mitigating potential security threats, such as SQL injection and cross-site scripting (XSS) attacks.<\/p>\n\n\n\n<p>Moreover, Content Security Policy (CSP) is a security standard that helps prevent various types of code injection attacks by allowing website owners to define and enforce a set of policies regarding the sources of content that a browser can load.<\/p>\n\n\n\n<p>Robust password policies, multi-factor authentication (MFA), and regular security audits also play pivotal roles in maintaining website security. These measures help safeguard user accounts and sensitive data by adding layers of authentication and continuously assessing the system for vulnerabilities.<\/p>\n\n\n\n<p>Furthermore, regular software updates and patch management are crucial for addressing known security vulnerabilities in both the operating system and the software stack, reducing the risk of exploitation by malicious actors.<\/p>\n\n\n\n<p>In conclusion, a comprehensive website security strategy involves the integration of multiple protective measures, such as SSL\/TLS encryption, WAFs, CSP, strong authentication practices, and diligent software maintenance. The combination of these security layers contributes to a resilient defense system, enhancing the overall security posture of a website and protecting it from a wide range of potential threats.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hotlink protection is a feature that prevents other websites from directly linking to files on your website, such as images. This helps to reduce bandwidth usage and prevents others from using your resources without permission. Log in to cPanel: Access your cPanel account using your username and password. Navigate to Hotlink Protection in cPanel: Once [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":207,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[18],"class_list":["post-190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panel","tag-hotlink-protection-in-cpanel"],"_links":{"self":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/190","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":9,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/190\/revisions\/208"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/media\/207"}],"wp:attachment":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}