{"id":210,"date":"2026-06-01T23:24:43","date_gmt":"2026-06-02T06:24:43","guid":{"rendered":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/"},"modified":"2026-06-01T23:24:43","modified_gmt":"2026-06-02T06:24:43","slug":"how-to-set-up-hotlink-protection-cpanel","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/","title":{"rendered":"How to Set Up Hotlink Protection in cPanel"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>cPanel hotlink protection stops other websites from directly embedding your files \u2014 images, videos, PDFs, audio files \u2014 using your server&#8217;s bandwidth without your permission. When a site hotlinks to one of your files, every time someone loads that page, your server delivers the file and absorbs the transfer cost. You pay for their traffic.<\/p>\n<p>This is a common problem on shared hosting plans where bandwidth limits are tighter, but it hits VPS and dedicated server users too, especially if a viral post links directly to a large asset on your site. I&#8217;ve seen image-heavy WordPress sites burn through gigabytes in a weekend because a forum post embedded their product photos.<\/p>\n<p>This article walks through enabling hotlink protection via cPanel&#8217;s built-in tool, customising which file types are protected, and what to do when the protection breaks something it shouldn&#8217;t.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Active cPanel account (cPanel version 96 or later \u2014 the UI layout described here applies to Paper Lantern and Jupiter themes)<\/li>\n<li>At least one domain or subdomain hosted on the account<\/li>\n<li>Files publicly accessible via HTTP\/HTTPS (hotlink protection works at the web server level, so the files must be served by Apache or LiteSpeed)<\/li>\n<li>If you&#8217;re on a managed WordPress plan or a server with a custom firewall, confirm that <code class=\"\" data-line=\"\">.htaccess<\/code> overrides are enabled \u2014 hotlink protection writes rules to <code class=\"\" data-line=\"\">.htaccess<\/code> and won&#8217;t work if <code class=\"\" data-line=\"\">AllowOverride<\/code> is set to <code class=\"\" data-line=\"\">None<\/code><\/li>\n<\/ul>\n<h2>Step-by-Step: Enabling Hotlink Protection in cPanel<\/h2>\n<ol>\n<li>\n    <strong>Log in to cPanel.<\/strong> Your login URL is typically <code class=\"\" data-line=\"\">https:\/\/yourdomain.com:2083<\/code> or <code class=\"\" data-line=\"\">https:\/\/yourdomain.com\/cpanel<\/code>. Enter your cPanel username and password.\n  <\/li>\n<li>\n    <strong>Open Hotlink Protection.<\/strong> In the cPanel dashboard, scroll to the <em>Security<\/em> section and click <strong>Hotlink Protection<\/strong>. If you&#8217;re faster with search, type &#8220;hotlink&#8221; in the top search bar \u2014 it&#8217;ll surface immediately.\n  <\/li>\n<li>\n    <strong>Enable the feature.<\/strong> If hotlink protection is currently off, you&#8217;ll see an <strong>Enable<\/strong> button at the top of the page. Click it. The page will reload and show the configuration form.\n  <\/li>\n<li>\n    <strong>Review the URLs allowed to access your files.<\/strong> The <em>URLs to Allow Access<\/em> field lists domains that are permitted to embed your files. By default, cPanel pre-populates this with your own domain and <code class=\"\" data-line=\"\">www<\/code> variant. For example:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-1\"><code class=\"\" data-line=\"\">http:\/\/yourdomain.com\nhttps:\/\/yourdomain.com\nhttp:\/\/www.yourdomain.com\nhttps:\/\/www.yourdomain.com<\/code><\/pre>\n<\/div>\n<p>    Add any other domains that legitimately link to your assets \u2014 CDN origins, staging domains, partner sites. Put each URL on a separate line.<\/p>\n<p>\ud83d\udcdd Note: If you use a CDN like Cloudflare or BunnyCDN, add the CDN&#8217;s pull domain here, not just your main domain. If you don&#8217;t, the CDN&#8217;s origin fetch will get blocked and your cached assets will break.<\/p>\n<\/li>\n<li>\n    <strong>Set the file extensions to protect.<\/strong> The <em>Block direct access for the following extensions<\/em> field controls which file types are covered. The default list is usually:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-2\"><code class=\"\" data-line=\"\">jpg,jpeg,gif,png,bmp,mp3,mp4,avi,mov,mpg,mpeg,doc,docx,pdf<\/code><\/pre>\n<\/div>\n<p>    Add or remove extensions based on what you&#8217;re actually serving. If you host downloadable ZIPs or SVG icons that you don&#8217;t want embedded elsewhere, add <code class=\"\" data-line=\"\">zip,svg<\/code> to the list. If you don&#8217;t serve MP4s, leaving it in doesn&#8217;t hurt.<\/p>\n<p>\u26a0 Warning: Don&#8217;t add <code class=\"\" data-line=\"\">html<\/code>, <code class=\"\" data-line=\"\">htm<\/code>, <code class=\"\" data-line=\"\">php<\/code>, or <code class=\"\" data-line=\"\">js<\/code> to this list. Blocking those extensions will almost certainly break your site for legitimate visitors because browsers and scripts make direct requests to those files constantly.<\/p>\n<\/li>\n<li>\n    <strong>Configure what blocked requests see.<\/strong> Under <em>Redirect the request to the following URL<\/em>, you can either leave it blank (which returns a 403 Forbidden error) or point it to a replacement image. A common approach is to create a small &#8220;bandwidth thief&#8221; placeholder image and put its URL here:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-3\"><code class=\"\" data-line=\"\">https:\/\/yourdomain.com\/hotlink-blocked.png<\/code><\/pre>\n<\/div>\n<p>    This way, any page hotlinking your images will show your placeholder instead of a broken image icon. I&#8217;d recommend this over a bare 403 \u2014 it&#8217;s more visible to the person who set up the hotlink, and it doesn&#8217;t look broken to their visitors.\n  <\/li>\n<li>\n    <strong>Allow direct requests (optional but useful).<\/strong> The checkbox labelled <em>Allow direct requests<\/em> controls whether someone can access your files by typing the URL directly into a browser address bar. Leave this checked unless you specifically need to prevent direct downloads. Unchecking it means even you&#8217;ll get blocked if you try to open an image URL directly.\n  <\/li>\n<li>\n    <strong>Save the configuration.<\/strong> Click <strong>Submit<\/strong>. cPanel writes the hotlink protection rules directly to the <code class=\"\" data-line=\"\">.htaccess<\/code> file in your public web root (<code class=\"\" data-line=\"\">public_html\/.htaccess<\/code>).\n  <\/li>\n<\/ol>\n<h3>What cPanel actually writes to .htaccess<\/h3>\n<p>It&#8217;s worth knowing what&#8217;s happening under the hood. After you save, open <code class=\"\" data-line=\"\">public_html\/.htaccess<\/code> and you&#8217;ll see a block like this:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-4\"><code class=\"\" data-line=\"\">## Hotlink protection\nRewriteEngine on\nRewriteCond %{HTTP_REFERER} !^$\nRewriteCond %{HTTP_REFERER} !^https?:\/\/(www.)?yourdomain.com [NC]\nRewriteRule .(jpg|jpeg|gif|png|bmp|mp3|mp4)$ https:\/\/yourdomain.com\/hotlink-blocked.png [R,L]\n## End hotlink protection<\/code><\/pre>\n<\/div>\n<p>If you&#8217;re comfortable with Apache&#8217;s mod_rewrite, you can edit this block manually instead of using the cPanel UI. Just keep the comment markers intact \u2014 cPanel uses them to identify and update the block next time you save through the interface.<\/p>\n<p>\ud83d\udcdd Note: Our <a href=\"https:\/\/www.hostandtech.com\/shared-hosting\/\">Shared Hosting<\/a> plans all run Apache with <code class=\"\" data-line=\"\">AllowOverride All<\/code> enabled, so <code class=\"\" data-line=\"\">.htaccess<\/code> rules like these work out of the box without any server-level config changes.<\/p>\n<h2>Common Issues &amp; Troubleshooting<\/h2>\n<h3>My own site&#8217;s images are broken after enabling hotlink protection<\/h3>\n<p>This almost always means your site is loading assets from a URL that isn&#8217;t in the allowed list. Common culprits: a <code class=\"\" data-line=\"\">www<\/code> vs non-<code class=\"\" data-line=\"\">www<\/code> mismatch, an HTTPS URL when you only added HTTP (or vice versa), or a subdomain like <code class=\"\" data-line=\"\">cdn.yourdomain.com<\/code> that wasn&#8217;t included. Go back to Hotlink Protection in cPanel, add the missing URL variant, and save again.<\/p>\n<h3>Hotlink protection is enabled but images are still loading on other sites<\/h3>\n<p>Check whether the external site is actually hotlinking or has downloaded and re-uploaded your image. Hotlink protection can only block requests that send a <code class=\"\" data-line=\"\">Referer<\/code> header pointing to the offending site. If they&#8217;ve copied the file to their own server, there&#8217;s nothing to block. Also check that your <code class=\"\" data-line=\"\">.htaccess<\/code> file is being read \u2014 on some configurations, especially Nginx-only stacks, <code class=\"\" data-line=\"\">.htaccess<\/code> isn&#8217;t parsed at all. This is rare on cPanel servers (which use Apache), but worth confirming with your host if you&#8217;re on a custom VPS setup.<\/p>\n<h3>The redirect URL is showing a broken image icon instead of my placeholder<\/h3>\n<p>If you set a redirect URL and it&#8217;s still showing broken, the placeholder image itself is probably getting caught by the hotlink rule. This is a classic circular reference problem. The fix: make sure the placeholder image&#8217;s URL is either on a different domain or that direct requests are allowed (the <em>Allow direct requests<\/em> checkbox is ticked). Alternatively, return a 403 instead of redirecting \u2014 remove the redirect URL entirely and let the server return a proper error code.<\/p>\n<h3>WordPress media library images stopped loading in the admin panel<\/h3>\n<p>The WordPress admin loads images using requests that may not send a <code class=\"\" data-line=\"\">Referer<\/code> header matching your domain, especially if you&#8217;re accessing the admin over HTTPS while the allowed URL list only has HTTP entries. Add both HTTP and HTTPS versions of your domain (and <code class=\"\" data-line=\"\">www<\/code> and non-<code class=\"\" data-line=\"\">www<\/code>) to the allowed list. If the problem persists after that, check whether a page builder or plugin is loading media from a different subdomain.<\/p>\n<h3>Changes aren&#8217;t taking effect after clicking Submit<\/h3>\n<p>cPanel writes the rules to <code class=\"\" data-line=\"\">public_html\/.htaccess<\/code>. If that file has restricted permissions or is owned by a different system user, the write may silently fail. Check the file&#8217;s permissions via File Manager \u2014 it should be <code class=\"\" data-line=\"\">644<\/code>. Also check whether another plugin or tool (like a WordPress security plugin) has locked the <code class=\"\" data-line=\"\">.htaccess<\/code> file. Some plugins mark it read-only to prevent tampering, which also prevents cPanel from updating it.<\/p>\n<h2>FAQ<\/h2>\n<div class=\"ht-faq-section\">\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Does cPanel hotlink protection affect SEO or Google image indexing?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>It can. Googlebot&#8217;s image crawler doesn&#8217;t always send a Referer header, which means if direct requests are blocked, Google may not be able to index your images. Keep the &#8216;Allow direct requests&#8217; checkbox enabled to avoid this. Hotlink protection targets embeds from other websites, not direct URL access, so with that box ticked your SEO should be unaffected.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Will hotlink protection block images loaded through a CDN?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Yes, if you don&#8217;t add the CDN&#8217;s domain to the allowed list. When a CDN fetches your origin files, the request may come from the CDN&#8217;s servers with a Referer that doesn&#8217;t match your domain. Add your CDN&#8217;s pull zone domain to the &#8216;URLs to Allow Access&#8217; field. Exactly which URL to add depends on your CDN provider \u2014 check their documentation for the origin pull domain.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Can I set up hotlink protection without cPanel by editing .htaccess directly?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Yes. The rules cPanel generates are standard Apache mod_rewrite directives and you can write them manually. The main reason to use the cPanel UI is convenience \u2014 it handles escaping and syntax for you. If you do edit .htaccess directly, keep the cPanel comment markers if you want to manage it through the UI later; otherwise cPanel will add a second block instead of updating the existing one.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Does hotlink protection work on Nginx servers?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Not through cPanel&#8217;s Hotlink Protection tool, which only writes Apache .htaccess rules. If your server uses Nginx (or LiteSpeed in pure Nginx mode), those rules are ignored. You&#8217;d need to configure hotlink protection at the Nginx config level using a valid_referers block, which requires server-level access. On a Host &amp; Tech VPS, that&#8217;s something you&#8217;d configure directly in your Nginx site config.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Does hotlink protection stop someone from downloading my files?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>No. Hotlink protection only blocks requests that include a Referer header from an unauthorised domain. Anyone who pastes your file URL directly into a browser (or uses a download manager that strips Referer headers) can still access the file. If you need to restrict downloads to logged-in users or paying customers, you&#8217;ll need an application-level solution \u2014 a WordPress membership plugin, token-based URLs, or server-side authentication.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hotlinking drains your bandwidth budget silently \u2014 and most people don&#8217;t notice until they get an overage bill. Here&#8217;s how to block it in cPanel in under five minutes.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[546,40,548,545,549,125,547,8],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-bandwidth","tag-cpanel","tag-cpanel-hotlink-protection","tag-hotlink-protection","tag-how-to-set-up-hotlink-protection-in-cpanel","tag-htaccess","tag-image-protection","tag-shared-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set Up Hotlink Protection in cPanel<\/title>\n<meta name=\"description\" content=\"Learn how to enable cPanel hotlink protection to stop other sites stealing your bandwidth. Step-by-step setup with troubleshooting tips.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up Hotlink Protection in cPanel\" \/>\n<meta property=\"og:description\" content=\"Learn how to enable cPanel hotlink protection to stop other sites stealing your bandwidth. Step-by-step setup with troubleshooting tips.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Host And Tech knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-02T06:24:43+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\"},\"headline\":\"How to Set Up Hotlink Protection in cPanel\",\"datePublished\":\"2026-06-02T06:24:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/\"},\"wordCount\":1602,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"keywords\":[\"bandwidth\",\"cPanel\",\"cPanel hotlink protection\",\"hotlink protection\",\"How to Set Up Hotlink Protection in cPanel\",\"htaccess\",\"image protection\",\"shared hosting\"],\"articleSection\":[\"cPanel Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/\",\"name\":\"How to Set Up Hotlink Protection in cPanel\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\"},\"datePublished\":\"2026-06-02T06:24:43+00:00\",\"description\":\"Learn how to enable cPanel hotlink protection to stop other sites stealing your bandwidth. Step-by-step setup with troubleshooting tips.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-set-up-hotlink-protection-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up Hotlink Protection in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"name\":\"Host And Tech knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\",\"name\":\"Host And Tech knowledge base\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"contentUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"width\":1134,\"height\":395,\"caption\":\"Host And Tech knowledge base\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/stshostandtech\",\"https:\\\/\\\/x.com\\\/stshostandtech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/hostandtech.com\\\/kb\"],\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/author\\\/admin_fjj7qydm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up Hotlink Protection in cPanel","description":"Learn how to enable cPanel hotlink protection to stop other sites stealing your bandwidth. Step-by-step setup with troubleshooting tips.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up Hotlink Protection in cPanel","og_description":"Learn how to enable cPanel hotlink protection to stop other sites stealing your bandwidth. Step-by-step setup with troubleshooting tips.","og_url":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/","og_site_name":"Host And Tech knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2026-06-02T06:24:43+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/"},"author":{"name":"admin","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee"},"headline":"How to Set Up Hotlink Protection in cPanel","datePublished":"2026-06-02T06:24:43+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/"},"wordCount":1602,"commentCount":0,"publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"keywords":["bandwidth","cPanel","cPanel hotlink protection","hotlink protection","How to Set Up Hotlink Protection in cPanel","htaccess","image protection","shared hosting"],"articleSection":["cPanel Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/","url":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/","name":"How to Set Up Hotlink Protection in cPanel","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/#website"},"datePublished":"2026-06-02T06:24:43+00:00","description":"Learn how to enable cPanel hotlink protection to stop other sites stealing your bandwidth. Step-by-step setup with troubleshooting tips.","breadcrumb":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-set-up-hotlink-protection-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Set Up Hotlink Protection in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/kb\/#website","url":"https:\/\/hostandtech.com\/kb\/","name":"Host And Tech knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/kb\/#organization","name":"Host And Tech knowledge base","url":"https:\/\/hostandtech.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","contentUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","width":1134,"height":395,"caption":"Host And Tech knowledge base"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/hostandtech.com\/kb"],"url":"https:\/\/hostandtech.com\/kb\/author\/admin_fjj7qydm\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":0,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}