{"id":17975,"date":"2021-10-19T12:29:47","date_gmt":"2021-10-19T12:29:47","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=17975"},"modified":"2026-03-10T09:36:37","modified_gmt":"2026-03-10T09:36:37","slug":"hotlinking-what-is-it-and-how-to-prevent-it-in-wordpress","status":"publish","type":"post","link":"\/ph\/tutorials\/hotlinking","title":{"rendered":"Hotlinking: Key Reasons to Avoid and Methods to Protect Your Site"},"content":{"rendered":"<p>Hotlinking is the act of using another site&rsquo;s bandwidth by displaying their website asset &ndash; like an image, video, or audio file &ndash; on a different website via a direct web link.<\/p><p>When this happens, the original website owner must cover and pay for these server resources each time a web browser wants to load and view the asset. <\/p><p>If you&rsquo;re a website owner or a web user in general, you might have heard about hotlinking. Many webmasters consider it bad practice because it can put websites at a significant disadvantage. <\/p><p>For example, <strong>Website B<\/strong>&rsquo;s owner found a funny meme on <strong>Website A<\/strong> and decided to use it on their website. But instead of saving the image on their computer and reuploading it, the owner of Website B links the image directly from Website A to instantly show it on their site.<\/p><p>Even though people can see the meme on Website B&rsquo;s site, the origin server is still storing it. In other words, server resources from Website A are used every time a user views the hotlinked image. If Website B receives high traffic, a significant amount of Website A&rsquo;s server resources will be used.<\/p><p>This article will explain why you should avoid hotlinking and how to stop doing it. For web administrators, we provide four methods to protect your website from hotlinks: using hPanel, an FTP client, a content delivery network (CDN), and WordPress plugins.<\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/How-to-Speed-Up-Your-Website-EN.pdf\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"283\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/11\/eBook-Speed-Up-your-website-1024x283.png\" alt=\"\" class=\"wp-image-69260\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/11\/eBook-Speed-Up-your-website-1536x425.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/11\/eBook-Speed-Up-your-website-300x83.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/11\/eBook-Speed-Up-your-website-150x41.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/11\/eBook-Speed-Up-your-website-768x212.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/11\/eBook-Speed-Up-your-website.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-reasons-to-avoid-hotlinking\">Reasons to Avoid Hotlinking<\/h2><p>It&rsquo;s a fact that hotlinking negatively impacts website owners the most. For those who do it, hotlinking might seem like an easy way to acquire website assets, but in reality, hotlinking can harm them too.<\/p><p>Let&rsquo;s go over the five main reasons why you should avoid hotlinking at all costs:<\/p><ul class=\"wp-block-list\">\n<li><strong>Reusing assets without permission is unethical. <\/strong>Reusing content assets without authorization is theft. Unless the content is under the <a href=\"https:\/\/creativecommons.org\/licenses\/\" target=\"_blank\" rel=\"noopener\">creative commons license<\/a>, you have to acquire the permission and rights before using it on your site.<\/li>\n\n\n\n<li><strong>Hotlinking can have legal repercussions. <\/strong>Hotlinking copyrighted content can lead to legal and monetary consequences. If the original owner sends the perpetrator a copyright infringement notice and the perpetrator fails to respond, the original owner can file a lawsuit.<\/li>\n\n\n\n<li><strong>You have no control over the hotlinked file. <\/strong>A hotlinked image is connected to the original website. If the original owner decides to modify or delete the content at any time, the changes will also be shown on the perpetrator&rsquo;s website.<\/li>\n\n\n\n<li><strong>Hotlinking makes you appear unoriginal and unprofessional. <\/strong>Due to the bad reputation of hotlinking, adopting this practice can poorly reflect on you. People may assume that you lack originality and don&rsquo;t respect other users&rsquo; rights.<\/li>\n\n\n\n<li><strong>You would be leeching off another website owner&rsquo;s resources and increasing their hosting costs. <\/strong>Every time someone views a hotlinked image, it eats up the origin server&rsquo;s bandwidth. So, the perpetrator is not only stealing content but also stealing website resources from the original owner.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-stop-hotlinking\">How to Stop Hotlinking<\/h2><p>Now that you&rsquo;ve learned why you should stop hotlinking, you might be wondering what to do instead when you would like to use images from other websites.<\/p><p>The most important part is making sure that you&rsquo;ve been given the authorization to use the image. There are some images that you can acquire by simply asking for the owner&rsquo;s permission. Others are under a strict legal license &ndash; for example, copyrighted photographs.<\/p><p>Once you&rsquo;ve received the permission or took care of the legal process, you should upload the file to your own host or use a third-party provider. For images, use an image hosting service like <a href=\"https:\/\/imgur.com\/\" target=\"_blank\" rel=\"noopener\">Imgur<\/a>. This way, you will not be stealing bandwidth from the original website owner.<\/p><p>If, for any reason, you can&rsquo;t acquire the image you want, try these alternatives:<\/p><ul class=\"wp-block-list\">\n<li><strong>Find a similar replacement<\/strong>. You might still be able to deliver the same message with a different image. For example, if there&rsquo;s a specific photo you can&rsquo;t get, try acquiring a similar one from another source, such as a stock image service like <a href=\"https:\/\/unsplash.com\/\" target=\"_blank\" rel=\"noopener\">Unsplash<\/a>, <a href=\"https:\/\/www.shutterstock.com\/\" target=\"_blank\" rel=\"noopener\">Shutterstock<\/a>, and <a href=\"https:\/\/www.pexels.com\/\" target=\"_blank\" rel=\"noopener\">Pexels<\/a>.<\/li>\n\n\n\n<li><strong>Link the page, not the image. <\/strong>If you can&rsquo;t replace the image with a similar alternative, consider adding a link to the image&rsquo;s original web page. You might not be able to show the image exactly as you wanted, but your visitors will still have the opportunity to see it by clicking on the link you provided.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-protect-your-site-from-getting-hotlinked\">How to Protect Your Site From Getting Hotlinked<\/h2><p>Putting hotlink protection in place is very important to prevent issues related to content and bandwidth theft.<\/p><p>Before you proceed, keep in mind that hotlink protection won&rsquo;t hurt your website&rsquo;s presence in search results. As long as you don&rsquo;t block search engines from indexing your images, your <a href=\"\/ph\/tutorials\/what-is-seo\/\">search engine optimization (SEO)<\/a> efforts will be unaffected.<\/p><p>Let&rsquo;s go over four different methods to protect your assets from getting hotlinked.<\/p><h3 class=\"wp-block-heading\" id=\"h-method-1-accessing-hpanel-settings\">Method 1: Accessing hPanel Settings<\/h3><p>If you <a href=\"\/ph\/web-hosting\">host your website on Hostinger<\/a>, you can set up hotlink protection right from <a href=\"\/ph\/tutorials\/how-to-use-hostinger\">hPanel<\/a>. The process should be similar on other control panels. Follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Log in to your hosting account and head to the dashboard.<\/li>\n\n\n\n<li>Under <strong>Advanced<\/strong>, select <strong>Hotlink Protection<\/strong>. <\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/hpanel-advanced-hotlinkprotection-sidebar.png\"><img decoding=\"async\" width=\"448\" height=\"444\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/hpanel-advanced-hotlinkprotection-sidebar.png\" alt=\"The Hotlink protection button on hPanel\" class=\"wp-image-82239\" style=\"width:336px;height:333px\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hpanel-advanced-hotlinkprotection-sidebar.png 448w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hpanel-advanced-hotlinkprotection-sidebar-300x297.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hpanel-advanced-hotlinkprotection-sidebar-150x150.png 150w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Under <strong>Block direct access to these extensions<\/strong>, choose which file extensions you would like to protect. Once applied, visitors won&rsquo;t be able to view the direct links attached to the file extensions you&rsquo;ve selected.<\/li>\n\n\n\n<li>In the <strong>Redirect blocked requests to this url <\/strong>field, you have the option to enter the URL of an error page you want to show visitors who attempt to hotlink your website.<\/li>\n<\/ol><figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-hotlinkprotection-configurehotlinkprotection.png\"><img decoding=\"async\" width=\"911\" height=\"516\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-hotlinkprotection-configurehotlinkprotection.png\" alt=\"The Hotlink Protection menu on hPanel\" class=\"wp-image-81739\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/hpanel-advanced-hotlinkprotection-configurehotlinkprotection.png 911w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/hpanel-advanced-hotlinkprotection-configurehotlinkprotection-300x170.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/hpanel-advanced-hotlinkprotection-configurehotlinkprotection-150x85.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/hpanel-advanced-hotlinkprotection-configurehotlinkprotection-768x435.png 768w\" sizes=\"(max-width: 911px) 100vw, 911px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-method-2-using-an-ftp-client\">Method 2: Using an FTP Client<\/h3><p>Another option is to edit your website&rsquo;s .<strong>htaccess <\/strong>file by accessing it through an FTP client like <a href=\"\/ph\/tutorials\/ftp\/filezilla-ftp-configuration\">FileZilla<\/a> or the file manager on your hosting account&rsquo;s control panel.<\/p><p>Keep in mind that this method involves editing your website&rsquo;s code, so be careful &ndash; a small error can render your site unusable.<\/p><ol class=\"wp-block-list\">\n<li>Once you&rsquo;ve connected to your website&rsquo;s FTP or opened up the file manager, navigate to the <strong>public_html <\/strong>folder.<\/li>\n<\/ol><ol class=\"wp-block-list\" start=\"2\">\n<li>Within the <strong>public_html<\/strong> folder, find the <strong>.htaccess <\/strong>file and download it.<\/li>\n<\/ol><ol class=\"wp-block-list\" start=\"3\">\n<li>On your computer, make a copy of the original <strong>.htaccess <\/strong>file in case something goes wrong.<\/li>\n<\/ol><ol class=\"wp-block-list\" start=\"4\">\n<li><a href=\"\/ph\/tutorials\/create-default-wordpress-htaccess-file\">Open the <strong>.htaccess <\/strong>file<\/a> using your preferred text editor.<\/li>\n<\/ol><ol class=\"wp-block-list\" start=\"5\">\n<li>Copy and paste the following code into the file:<br><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">RewriteEngine on<\/code><br><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">RewriteCond %{HTTP_REFERER} !^$<\/code><br><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">RewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www.)?google.com [NC]<\/code><br><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">RewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www.)?bing.com [NC]<\/code><br><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">RewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www.)?yahoo.com [NC]<\/code><br><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">RewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www.)?yourdomain.com [NC]<\/code><br><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">RewriteRule .(jpg|jpeg|png|gif)$ &ndash; [NC,F,L]<\/code><\/li>\n<\/ol><ol class=\"wp-block-list\" start=\"6\">\n<li>Change <strong>yourdomain.com <\/strong>to your site&rsquo;s actual domain.<\/li>\n\n\n\n<li>Save the edited <strong>.htaccess <\/strong>file and upload it back to the <strong>public_html <\/strong>folder.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-method-3-using-a-cdn\">Method 3: Using a CDN<\/h3><p>Using a <a href=\"\/ph\/tutorials\/what-is-cdn\">content delivery network (CDN)<\/a> for your website has many benefits. A CDN can increase content delivery speed, providing a better performance for your visitors. It can also offer asset management features for website administrators, hotlink protection being one of them.<\/p><p>The process of activating hotlink protection will vary depending on the CDN provider you use. The following tutorial will go over how to set up hotlink protection on two popular CDN providers &ndash; <a href=\"https:\/\/www.cloudflare.com\/\" target=\"_blank\" rel=\"noopener\">Cloudflare<\/a> and <a href=\"https:\/\/www.keycdn.com\/\" target=\"_blank\" rel=\"noopener\">KeyCDN<\/a>.<\/p><p>Here&rsquo;s how to activate hotlink protection on Cloudflare:<\/p><ol class=\"wp-block-list\">\n<li>Log in to your Cloudflare account and navigate to the dashboard.<\/li>\n\n\n\n<li>Select the <strong>Scrape Shield <\/strong>app, which is located on the right of the apps bar. <\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/cloudflare-scrape.png\"><img decoding=\"async\" width=\"1024\" height=\"467\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/cloudflare-scrape-1024x467.png\" alt=\"Scrape shield on Cloudflare\" class=\"wp-image-38046\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/cloudflare-scrape-1024x467.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/cloudflare-scrape-300x137.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/cloudflare-scrape-150x68.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/cloudflare-scrape-768x350.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/cloudflare-scrape-1536x700.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/cloudflare-scrape.png 1894w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"3\">\n<li>Switch <strong>Hotlink Protection<\/strong> on.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/hotlink-protection.png\"><img decoding=\"async\" width=\"1024\" height=\"463\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/hotlink-protection-1024x463.png\" alt=\"Switch the toggle to on to activate the hotlink protection\" class=\"wp-image-38047\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hotlink-protection.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hotlink-protection-300x136.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hotlink-protection-150x68.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hotlink-protection-768x347.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/hotlink-protection-1536x694.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>The Scrape Shield app by Cloudflare specifically prevents image hotlinking and supports <strong>.gif<\/strong>, <strong>.ico<\/strong>, <strong>.jpg<\/strong>, <strong>.jpeg<\/strong>, and <strong>.png<\/strong> file types.<\/p><p>Here&rsquo;s how to activate hotlink protection on KeyCDN:<\/p><ol class=\"wp-block-list\">\n<li>Log in to your KeyCDN account and go to the dashboard.<\/li>\n\n\n\n<li>Select <strong>Zone Referrers <\/strong>from the sidebar.<\/li>\n\n\n\n<li>Click <strong>Add Zone Referrer<\/strong>. <\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/zone-referrer.png\"><img decoding=\"async\" width=\"1024\" height=\"461\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/zone-referrer-1024x461.png\" alt=\"KeyCDN, highlighting Add Zone Referrer\" class=\"wp-image-38048\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/zone-referrer.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/zone-referrer-300x135.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/zone-referrer-150x67.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/zone-referrer-768x345.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/zone-referrer-1536x691.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"4\">\n<li>Enter the URL of the zone referrer. Zone referrers are the URLs that are allowed to view direct links of your website assets. URLs that aren&rsquo;t included in the zone referrers will be blocked.<\/li>\n\n\n\n<li>Select the <strong>Zone <\/strong>from the drop-down menu.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/add-zone.png\"><img decoding=\"async\" width=\"1024\" height=\"467\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/add-zone-1024x467.png\" alt=\"Select the zone on KeyCDN\" class=\"wp-image-38049\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/add-zone.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/add-zone-300x137.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/add-zone-150x68.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/add-zone-768x350.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/add-zone-1536x700.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"6\">\n<li>Click <strong>Add <\/strong>to save your settings.<\/li>\n\n\n\n<li>Feel free to add multiple zone referrers.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-method-4-using-a-wordpress-plugin\">Method 4: Using a WordPress Plugin<\/h3><p>If you use WordPress as your website&rsquo;s <a href=\"\/ph\/tutorials\/what-is-a-cms\/\">content management system<\/a> (CMS), there are several <a href=\"\/ph\/tutorials\/best-wordpress-plugins\">WordPress plugins<\/a> available that can prevent hotlinking. We&rsquo;ll go over three of them.<\/p><p>The first one is the <a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-wp-security-and-firewall\/\" target=\"_blank\" rel=\"noopener\">All In One WP Security and Firewall<\/a> plugin, which can automatically edit your website&rsquo;s <strong>.htaccess <\/strong>file to prevent hotlinks. Follow these steps to set it up:<\/p><ol class=\"wp-block-list\">\n<li>From the WordPress dashboard, <a href=\"\/ph\/tutorials\/wordpress\/how-to-install-wordpress-plugins\">install the plugin<\/a> and activate it.<\/li>\n\n\n\n<li>Navigate to the <strong>WP Security <\/strong>menu &rarr; <strong>Firewall <\/strong>&rarr; <strong>Prevent Hotlinks<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Check this if you want to prevent hotlinking to images on your site<\/strong>. <\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/check-to-prevent.png\"><img decoding=\"async\" width=\"1024\" height=\"460\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/check-to-prevent-1024x460.png\" alt=\"WP Security dashboard, highlighting Prevent Image Hotlinking\" class=\"wp-image-38050\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/check-to-prevent.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/check-to-prevent-300x135.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/check-to-prevent-150x67.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/check-to-prevent-768x345.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/check-to-prevent-1536x690.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"4\">\n<li>Click <strong>Save Settings<\/strong>.<\/li>\n<\/ol><p>Another plugin you can use is <a href=\"https:\/\/wordpress.org\/plugins\/wp-content-copy-protector\/\" target=\"_blank\" rel=\"noopener\">WP Content Copy Protection &amp; No Right Click<\/a>. This plugin can block visitors from copying text and right-clicking on your website. If you enable the right-click prevention, your visitors won&rsquo;t be able to find or save the direct link to your content files.<\/p><p>Here&rsquo;s how to enable the right-click protection on your site using this plugin:<\/p><ol class=\"wp-block-list\">\n<li>Install and activate the plugin.<\/li>\n\n\n\n<li>Click <strong>Copy Protection <\/strong>from your WordPress dashboard&rsquo;s sidebar.<\/li>\n\n\n\n<li>Select the <strong>Premium RightClick Protection <\/strong>tab.<\/li>\n\n\n\n<li>Select the types of pages where you want to enable right-click protection. You can allow it on <strong>Posts<\/strong>, the <strong>Homepage<\/strong>, and other <strong>Static pages<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/right-click-protection.png\"><img decoding=\"async\" width=\"1024\" height=\"294\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/right-click-protection-1024x294.png\" alt=\"Copy Protection plugin dashboard\" class=\"wp-image-38052\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/right-click-protection-1024x294.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/right-click-protection-300x86.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/right-click-protection-150x43.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/right-click-protection-768x221.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/right-click-protection-1536x442.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/right-click-protection.png 1610w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"5\">\n<li>Click <strong>Save Settings<\/strong>.<\/li>\n<\/ol><p><a href=\"https:\/\/wordpress.org\/plugins\/secure-copy-content-protection\/\" target=\"_blank\" rel=\"noopener\">Secure Copy Content Protection and Content Locking<\/a> is another option to disable right-click and asset copying. Here&rsquo;s how to set it up:<\/p><ol class=\"wp-block-list\">\n<li>Install and activate the plugin.<\/li>\n\n\n\n<li>From the WordPress dashboard, navigate to <strong>Copy Protection <\/strong>&rarr; <strong>Options<\/strong>.<\/li>\n\n\n\n<li>Make sure that both <strong>Disable right-click <\/strong>and <strong>Disable right-click for images <\/strong>are ticked. Tick <strong>Show Message <\/strong>to give your visitors a message when they attempt to right-click on your site.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/copy-protection.png\"><img decoding=\"async\" width=\"1024\" height=\"372\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/copy-protection-1024x372.png\" alt=\"Activating hotlink protection on the Copy Protection plugin.\" class=\"wp-image-38051\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/copy-protection.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/copy-protection-300x109.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/copy-protection-150x55.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/copy-protection-768x279.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/10\/copy-protection-1536x559.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"4\">\n<li>Click <strong>Save Changes<\/strong>.<\/li>\n<\/ol><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-full\"><a href=\"\/ph\/web-hosting\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/11\/Web-hosting_in-text-banner.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/11\/Web-hosting_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/11\/Web-hosting_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/11\/Web-hosting_in-text-banner-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Hotlinking is the act of copying assets, usually images, by linking the file directly from other websites without authorization.<\/p><p>It is a bad practice that negatively impacts web administrators. Hotlinking another website&rsquo;s images can take up a significant amount of bandwidth on its server and infringe on its owners&rsquo; copyright.<\/p><p>We&rsquo;ve explored different reasons why you should never hotlink and what you can do instead to obtain and share content assets. We also went over four methods to protect your website from hotlinking.<\/p><p>We hope that this article has helped you find better ways to acquire content and keep your site safe from bandwidth theft. Good luck.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p><a href=\"\/ph\/tutorials\/hacked-website\">How to Diagnose and Fix a Hacked Website<\/a><br>\n<a href=\"\/ph\/tutorials\/website-optimization\">Website Optimization<\/a><br>\n<a href=\"\/ph\/tutorials\/clear-browser-cache\">How to Clear Browser Cache and History<\/a><br>\n<a href=\"\/ph\/tutorials\/website\/how-to-inspect-and-change-style-using-google-chrome\">How to Inspect Element<\/a><br>\n<a href=\"\/ph\/tutorials\/backups\/downloading-website-backup\">How to Download a Website Backup<\/a><br>\n<a href=\"\/ph\/tutorials\/website\/how-to-check-your-website-error-log\">How to Check Your Website&rsquo;s PHP Error Log<\/a><\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-hotlinking-faq\">Hotlinking FAQ<\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1664960880862\"><h3 class=\"schema-faq-question\">Is Hotlinking Legal?<\/h3> <p class=\"schema-faq-answer\">While hotlinking is considered bad manners in the online community, it&rsquo;s not illegal in the EU or in the US to embed images without permission.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1664960895670\"><h3 class=\"schema-faq-question\">What Does No Hotlinking Mean?<\/h3> <p class=\"schema-faq-answer\">&lsquo;No hotlinking&rsquo; is a request aiming to limit others from directly linking to your website&rsquo;s assets, and subsequently, stealing your website&rsquo;s bandwidth.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1664960910512\"><h3 class=\"schema-faq-question\">What Is Hotlinking Protection?<\/h3> <p class=\"schema-faq-answer\">When you have hotlinking protection enabled, nobody can directly link to your website&rsquo;s assets (like images and videos). This way, you can reserve bandwidth and ensure your website works the way it should.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hotlinking is the act of using another site&rsquo;s bandwidth by displaying their website asset &ndash; like an image, video, or audio file &ndash; on a different website via a direct web link. When this happens, the original website owner must cover and pay for these server resources each time a web browser wants to load [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ph\/tutorials\/hotlinking\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":186,"featured_media":41924,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Hotlinking: What Is It and Why Is It Bad?","rank_math_description":"Hotlinking might seem an easy way to acquire website assets, but in reality, it brings several disadvantages. Learn here how to avoid it.","rank_math_focus_keyword":"hotlinking","footnotes":""},"categories":[1],"tags":[],"class_list":["post-17975","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"hreflangs":[],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/17975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/users\/186"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/comments?post=17975"}],"version-history":[{"count":33,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/17975\/revisions"}],"predecessor-version":[{"id":104437,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/17975\/revisions\/104437"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/media\/41924"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/media?parent=17975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/categories?post=17975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/tags?post=17975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}