{"id":9530,"date":"2017-10-23T16:58:54","date_gmt":"2017-10-23T13:58:54","guid":{"rendered":"https:\/\/themeisle.com\/blog\/?p=9530"},"modified":"2023-09-19T16:10:06","modified_gmt":"2023-09-19T13:10:06","slug":"prevent-image-hotlinking-in-wordpress","status":"publish","type":"post","link":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/","title":{"rendered":"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)"},"content":{"rendered":"<p>Image hotlinking is a practice that can negatively affect your site&#8217;s performance and your bottom line. However, sometimes it can be hard to notice that there&#8217;s a problem until the damage is done. That&#8217;s why it&#8217;s important to prevent image hotlinking in WordPress before it becomes an issue.<\/p>\n<p>Fortunately, WordPress enables you to protect your website against hotlinking through several methods. For example, <a href=\"https:\/\/themeisle.com\/blog\/do-i-need-a-wordpress-security-plugin\/\">some plugins<\/a> can get the job done, or you can <a href=\"https:\/\/themeisle.com\/blog\/content-delivery-network-for-wordpress\/\">use a Content Delivery Network (CDN)<\/a> to protect your images. However, we&#8217;re partial to a more manual approach that doesn&#8217;t require you to set up any additional tools.<\/p>\n<div class=\"su-row\">\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n<p>In this article, we&#8217;re going to talk about what image hotlinking is, how it can hurt you, and how to find out if someone&#8217;s doing it to your website. Then, we&#8217;ll teach you how to prevent image hotlinking in two short steps. Let&#8217;s do it!<\/p>\n<\/div><\/div>\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n\n\t\t<div class='ti-tweet-clear'><\/div>\n\t\t\t<div class='ti-tweet_wrapper'>\n\t\t    \t<div class='ti-tweet_text'>\n\t\t    \t\t<a href='https:\/\/twitter.com\/share?text=How+to+prevent+%23image+hotlinking+in+%23WordPress&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/' target='_blank' rel='nofollow'>How to prevent #image hotlinking in #WordPress<\/a>\n\t\t    \t<\/div>\n\t\t    \t<div class='ti-tweet_sharebtn'>\n\t\t    \t<a href='https:\/\/twitter.com\/share?text=How+to+prevent+%23image+hotlinking+in+%23WordPress&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/' target='_blank' rel='nofollow'>Click To Tweet \n\t\t    \t\t<span><\/span>\n\t\t    \t<\/a>\n\t\t    <\/div>\n\t\t<\/div>\n<\/div><\/div>\n<\/div>\n<h2>What image hotlinking is (and why you should prevent it)<\/h2>\n<p><strong>Image hotlinking is when someone embeds your images on their website by linking them directly from your website.<\/strong><\/p>\n<p>It&#8217;s bad enough when people use your media without permission, but image hotlinking adds insult to injury since it can also slow down your site.<\/p>\n<p>Let&#8217;s discuss the primary downsides to image hotlinking:<\/p>\n<ul>\n<li><strong>It negatively impacts your site&#8217;s performance.<\/strong>\u00a0Each time someone views a hotlinked image on a different website, it&#8217;s still loading from your server. That means they&#8217;re consuming your <a href=\"https:\/\/themeisle.com\/blog\/bandwidth\/\">bandwidth<\/a> without even visiting your site.<\/li>\n<li><strong>It&#8217;s bad form to use images without permission.<\/strong>\u00a0On top of straining your site&#8217;s performance, people who hotlink images often won&#8217;t give you proper attribution. It&#8217;s technically illegal to reproduce your content without credit, even if it&#8217;s hard to force people to take it down.<\/li>\n<\/ul>\n<p>As you can imagine, the significance of these issues depends on how much traffic the site with your hotlinked images receives. If it&#8217;s a small blog, for example, it might not impact your website&#8217;s performance much. However, if a site with lots of visitors hotlinks your media, it can cause a severe strain on your own site.<\/p>\n<h2>How to find out if someone is hotlinking your images<\/h2>\n<p>In most cases, you may not realize someone is hotlinking your images until you start to see a reduction in your site&#8217;s performance. Even then, there are dozens of reasons why a website can become sluggish. Therefore, your best option is to prevent image hotlinking in WordPress preemptively.<\/p>\n<p>We&#8217;ll talk about how to do that in a moment. For now, let&#8217;s focus on how to find out if someone is hotlinking your images. There are several ways you can do this. For example, you can use a CDN such as <a href=\"https:\/\/www.cloudflare.com\/\" target=\"_blank\" rel=\"noopener\">Cloudflare<\/a>, which includes a\u00a0<em>Hotlink Protection<\/em> feature that does exactly what its name implies.<\/p>\n<p>However, in our experience, the easiest way to find out if someone&#8217;s hotlinking your images is to use <a href=\"https:\/\/images.google.com\/\" target=\"_blank\" rel=\"noopener\">Google Images<\/a>. You can enter a simple command that tells Google to look for your site&#8217;s images in other URLs:<\/p>\n<pre><code>inurl:yourwebsite.com -site:yourwebsite.com<\/code><\/pre>\n<p>This command looks for every image from your website and then removes each entry that includes your own URL. If someone is hotlinking your images, they&#8217;ll show up in the remaining results. You can also click on each image and use the\u00a0<em>Visit Site\u00a0<\/em>button to find out who the culprits are.<\/p>\n<p>It&#8217;s not foolproof because the search might include some images that aren&#8217;t hotlinked. But it is a very good method that doesn&#8217;t require a special tool.<\/p>\n<p>This is what it tells us after testing this very blog:<\/p>\n<p><img data-opt-id=366771933  fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter  wp-image-9793\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png\" alt=\"image search for Themeisle\" width=\"900\" height=\"510\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:979\/h:555\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 979w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:170\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:435\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:28\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:423\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 423w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:700\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 700w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:261\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 261w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:344\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 344w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:238\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 238w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:979\/h:555\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/hotlinking.png 2x\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>Thankfully, you can simply block image hotlinking in WordPress altogether, which is what we&#8217;re going to do in the next section.<\/p>\n<h2>How to prevent image hotlinking in WordPress (in two steps)<\/h2>\n<p>Before we get started, you&#8217;ll need to download an FTP client such as <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noopener\">FileZilla<\/a>\u00a0(if you don&#8217;t have one already). We also recommend that you <a href=\"https:\/\/themeisle.com\/blog\/backup-a-wordpress-site-for-free\/\">back up your website<\/a>, since you&#8217;ll be tweaking one of your WordPress core files. When you&#8217;re ready on both counts, you can move on to the first step.<\/p>\n<h3>Step 1: Open your\u00a0<em>.htaccess\u00a0<\/em>file<\/h3>\n<p>The first thing you need to do is <a href=\"https:\/\/world.siteground.com\/\" target=\"_blank\" rel=\"noopener\">access your website via FTP<\/a>\u00a0and then go to your WordPress root folder. In most cases, it will be called\u00a0<code>public_html<\/code>,\u00a0although some hosts default to\u00a0<code>www<\/code> or your site&#8217;s name.<\/p>\n<p>When you&#8217;ve found the right folder, look for the file called <code>.htaccess<\/code>. Right-click on it, and choose the\u00a0<em>View\/Edit\u00a0<\/em>option:<\/p>\n<p><img data-opt-id=62991989  fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-9535\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png\" alt=\"Editing your htaccess file to prevent image hotlinking in WordPress.\" width=\"800\" height=\"138\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:790\/h:136\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 790w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:52\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:132\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:9\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:480\/h:83\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 480w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:296\/h:51\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 296w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:390\/h:67\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 390w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:270\/h:46\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 270w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:790\/h:136\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/htaccess-open.png 2x\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>This will automatically open the file using your local text editor so you can make modifications to it. Keep in mind that your\u00a0<code>.htaccess<\/code> file tells your server how to behave and who has access to specific files and folders. You need to be careful when working with it, hence the need to back up your website beforehand.<\/p>\n<h3>Step 2: Add a code snippet to your file<\/h3>\n<p>Now that your\u00a0<code>.htaccess<\/code> file is open, scroll to the end of it and paste in the following code:<\/p>\n<pre><code>\/* Prevent image hotlinking in WordPress *\/\r\nRewriteCond %{HTTP_REFERER} !^$\r\nRewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www\\.)?yourwebsite.com [NC]\r\nRewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www\\.)?google.com [NC]\r\nRewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www\\.)?facebook.com [NC]\r\nRewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www\\.)?twitter.com [NC]\r\nRewriteCond %{HTTP_REFERER} !^http(s)?:\/\/(www\\.)?other-websites-go-here.com [NC]\r\nRewriteRule \\.(jpg|jpeg|png|gif)$ - [F]<\/code><\/pre>\n<p>What this code does is prevent sites other than yours, Facebook, Twitter, and Google from accessing your images. You&#8217;ll notice that there&#8217;s an additional line with an example of another whitelisted site. If there are other places you want to allow to use your images, go ahead and add them using the same format as the first two entries.<\/p>\n<p>Finally, take a look at the very last line. It indicates which file formats you&#8217;ll apply the hotlink prevention rule to. If you&#8217;d like, you can add or remove options. Then, remember to replace the URLs in the example above with your own and save the changes to your file.<\/p>\n<p>And that&#8217;s it &#8211; you just blocked image hotlinking for your website at a server level!<\/p>\n<h2>Conclusion<\/h2>\n<p>Image hotlinking is a real problem for a lot of websites, particularly if the sites doing the hotlinking aren&#8217;t including proper attribution. If this happens to you, not only will your site&#8217;s performance likely suffer, but you&#8217;ll also lose out on potential visitors while others profit from your content.<\/p>\n\n\t\t<div class='ti-tweet-clear'><\/div>\n\t\t\t<div class='ti-tweet_wrapper'>\n\t\t    \t<div class='ti-tweet_text'>\n\t\t    \t\t<a href='https:\/\/twitter.com\/share?text=How+to+stop+people+from+%23hotlinking+your+images+%28%23WordPress+%23tutorial%29&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/' target='_blank' rel='nofollow'>How to stop people from #hotlinking your images (#WordPress #tutorial)<\/a>\n\t\t    \t<\/div>\n\t\t    \t<div class='ti-tweet_sharebtn'>\n\t\t    \t<a href='https:\/\/twitter.com\/share?text=How+to+stop+people+from+%23hotlinking+your+images+%28%23WordPress+%23tutorial%29&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/' target='_blank' rel='nofollow'>Click To Tweet \n\t\t    \t\t<span><\/span>\n\t\t    \t<\/a>\n\t\t    <\/div>\n\t\t<\/div>\n<p>Here&#8217;s how to prevent image hotlinking in WordPress without using plugins, in only two steps:<\/p>\n<ol>\n<li>Open your\u00a0<code>.htaccess<\/code> file via FTP.<\/li>\n<li>Add the code snippet from above to that file.<\/li>\n<\/ol>\n<p><strong><em>Do you have any questions about how to prevent image hotlinking in WordPress? Let&#8217;s talk about them in the comments section below!<\/em><\/strong><\/p>\n<style>.ticss-d144f107 strong{font-weight: 700;\n    letter-spacing: -0.2px;\n    line-height: 1.2;\n    display: inline-block;}<\/style>\n\n\n<div class=\"wp-block-columns speed-guide has-white-color has-text-color has-background has-link-color wp-elements-2f81f6c5526477b5b4d52d1ca4513949 is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\" style=\"background-color:#4267cf\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:40%\">\n<figure class=\"wp-block-image size-medium\"><img data-opt-id=30701221  fetchpriority=\"high\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png\" alt=\"speed guide\" class=\"wp-image-113040\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1024\/h:1024\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1024w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:150\/h:150\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 150w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:768\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:50\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:240\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 240w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:397\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 397w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:600\/h:600\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 600w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:148\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 148w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:195\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 195w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:135\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 135w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1200w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 2x\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center ticss-58e79f2f\" style=\"font-size:14px\"><strong>FREE GUIDE<\/strong><\/p>\n\n\n\n<p class=\"ticss-d144f107\" style=\"font-size:25px\"><strong>4 Essential Steps to Speed Up Your&nbsp;WordPress Website<\/strong><\/p>\n\n\n\n<p class=\"ticss-3b627beb\">Follow the simple steps in our 4-part mini series and reduce your loading times by 50-80%.&nbsp;\ud83d\ude80<\/p>\n\n\n<p><div class=\"frm_forms  with_frm_style frm_style_themeisle\" id=\"frm_form_4_container\" data-token=\"e6541d94efd8969e1c3ac0c80f60800a\">\n<form enctype=\"multipart\/form-data\" method=\"post\" class=\"frm-show-form  frm_pro_form \" id=\"form_site-speed-guide-below-post\" data-token=\"e6541d94efd8969e1c3ac0c80f60800a\">\n<div class=\"frm_form_fields \">\n<fieldset>\n<legend class=\"frm_screen_reader\">Site Speed Guide - Below Post<\/legend>\r\n\r\n<div class=\"frm_fields_container\">\n<input type=\"hidden\" name=\"frm_action\" value=\"create\" \/>\n<input type=\"hidden\" name=\"form_id\" value=\"4\" \/>\n<input type=\"hidden\" name=\"frm_hide_fields_4\" id=\"frm_hide_fields_4\" value=\"\" \/>\n<input type=\"hidden\" name=\"form_key\" value=\"site-speed-guide-below-post\" \/>\n<input type=\"hidden\" name=\"item_meta[0]\" value=\"\" \/>\n<input type=\"hidden\" id=\"frm_submit_entry_4\" name=\"frm_submit_entry_4\" value=\"e7bb7e9343\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/blog\/wp-json\/wp\/v2\/posts\/9530\" \/><input type=\"hidden\" name=\"item_meta[18]\" id=\"field_6px6q2\" value=\"\/blog\/wp-json\/wp\/v2\/posts\/9530\"  data-frmval=\"\/blog\/wp-json\/wp\/v2\/posts\/9530\"   \/>\n<div id=\"frm_field_15_container\" class=\"frm_form_field form-field  frm_required_field frm_none_container\">\r\n\t<label for=\"field_6px6q\" id=\"field_6px6q_label\" class=\"frm_primary_label\">Your Email\r\n\t\t<span class=\"frm_required\" aria-hidden=\"true\">*<\/span>\r\n\t<\/label>\r\n\t<input type=\"email\" id=\"field_6px6q\" name=\"item_meta[15]\" value=\"\"  autocomplete=\"email\"  placeholder=\"your@email.com\" data-reqmsg=\"Your Email cannot be blank.\" aria-required=\"true\" data-invmsg=\"Your Email is invalid\" aria-invalid=\"false\"  \/>\r\n\t\r\n\t\r\n<\/div>\n<div id=\"frm_field_17_container\" class=\"frm_form_field form-field  frm_none_container vertical_radio\">\r\n\t<div  id=\"field_6px6q3_label\" class=\"frm_primary_label\">Subscribe to our newsletter\r\n\t\t<span class=\"frm_required\" aria-hidden=\"true\"><\/span>\r\n\t<\/div>\r\n\t<div class=\"frm_opt_container\" aria-labelledby=\"field_6px6q3_label\" role=\"group\">\t\t<div class=\"frm_checkbox\" id=\"frm_checkbox_17-0\">\t\t\t<label  for=\"field_6px6q3-0\">\n\t\t\t<input type=\"checkbox\" name=\"item_meta[17][]\" id=\"field_6px6q3-0\" value=\"true\"  data-invmsg=\"Subscribe to our newsletter is invalid\" aria-invalid=\"false\"   \/> Subscribe to our newsletter<\/label><\/div>\n<\/div>\r\n\t\r\n\t\r\n<\/div>\n<div id=\"frm_field_14_container\" class=\"frm_form_field form-field \">\r\n\t<div class=\"frm_submit frm_flex\">\r\n<button class=\"frm_button_submit frm_final_submit\" type=\"submit\"   formnovalidate=\"formnovalidate\">FREE ACCESS<\/button>\r\n\r\n\r\n\r\n<\/div>\r\n<\/div>\n\t<input type=\"hidden\" name=\"item_key\" value=\"\" \/>\n\t\t\t<div id=\"frm_field_24_container\">\n\t\t\t<label for=\"field_uxclj\" >\n\t\t\t\tIf you are human, leave this field blank.\t\t\t<\/label>\n\t\t\t<input  id=\"field_uxclj\" type=\"text\" class=\"frm_form_field form-field frm_verify\" name=\"item_meta[24]\" value=\"\"  \/>\n\t\t<\/div>\n\t\t<input name=\"frm_state\" type=\"hidden\" value=\"tGKtIG19U6wyYcew8uBttfMOiFMM5EWVZ\/cVQvOAHXyPSAm6AeCFrcPBJiK38Y1i\" \/><\/div>\n<\/fieldset>\n<\/div>\n\n<p style=\"display: none !important;\" class=\"akismet-fields-container\" data-prefix=\"ak_\"><label>&#916;<textarea name=\"ak_hp_textarea\" cols=\"45\" rows=\"8\" maxlength=\"100\"><\/textarea><\/label><input type=\"hidden\" id=\"ak_js_1\" name=\"ak_js\" value=\"90\"\/><script>document.getElementById( \"ak_js_1\" ).setAttribute( \"value\", ( new Date() ).getTime() );<\/script><\/p><\/form>\n<\/div>\n<\/p>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"Image hotlinking is a practice that can negatively affect your site&#8217;s performance and your bottom line. However, sometimes it can be hard to notice that there&#8217;s a problem until the damage is done. That&#8217;s why it&#8217;s important to prevent image hotlinking in WordPress before it becomes an issue. Fortunately, WordPress enables you to protect your&#8230;","protected":false},"author":14,"featured_media":49150,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_stopmodifiedupdate":false,"_modified_date":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[26],"tags":[],"hashtags":[],"class_list":["post-9530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"wppr_data":{"cwp_meta_box_check":"No"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.8 (Yoast SEO v26.1.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)<\/title>\n<meta name=\"description\" content=\"Learning how to prevent image hotlinking in WordPress can protect you against sites that try to steal your media.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)\" \/>\n<meta property=\"og:description\" content=\"Learning how to prevent image hotlinking in WordPress can protect you against sites that try to steal your media.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Themeisle Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-23T13:58:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-19T13:10:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2180\" \/>\n\t<meta property=\"og:image:height\" content=\"1090\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"John Hughes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Hughes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/\"},\"author\":{\"name\":\"John Hughes\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/person\/0f080762cdcc47aee80f11536fe87242\"},\"headline\":\"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)\",\"datePublished\":\"2017-10-23T13:58:54+00:00\",\"dateModified\":\"2023-09-19T13:10:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/\"},\"wordCount\":1136,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png\",\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/\",\"url\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/\",\"name\":\"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)\",\"isPartOf\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png\",\"datePublished\":\"2017-10-23T13:58:54+00:00\",\"dateModified\":\"2023-09-19T13:10:06+00:00\",\"description\":\"Learning how to prevent image hotlinking in WordPress can protect you against sites that try to steal your media.\",\"breadcrumb\":{\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage\",\"url\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png\",\"contentUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png\",\"width\":2180,\"height\":1090,\"caption\":\"prevent image hotlinking in wordpress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/themeisle.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/themeisle.com\/blog\/#website\",\"url\":\"https:\/\/themeisle.com\/blog\/\",\"name\":\"Themeisle Blog\",\"description\":\"WordPress Tutorials and Reviews for Beginners and Advanced\",\"publisher\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/themeisle.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\",\"name\":\"VertiStudio\",\"alternateName\":\"Vertigo Studio SA\",\"url\":\"https:\/\/themeisle.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png\",\"contentUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png\",\"width\":718,\"height\":156,\"caption\":\"VertiStudio\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/person\/0f080762cdcc47aee80f11536fe87242\",\"name\":\"John Hughes\",\"description\":\"John is a self-taught WordPress designer and developer. He has been working with the CMS for over a decade, and has experience operating as a freelancer and as part of an agency. He\u2019s dabbled in everything from accessible design to website security. Plus, he has extensive knowledge of online business topics like affiliate marketing.\",\"sameAs\":[\"http:\/\/wordcandy.co\"],\"url\":\"https:\/\/themeisle.com\/blog\/author\/john-h\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)","description":"Learning how to prevent image hotlinking in WordPress can protect you against sites that try to steal your media.","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:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)","og_description":"Learning how to prevent image hotlinking in WordPress can protect you against sites that try to steal your media.","og_url":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/","og_site_name":"Themeisle Blog","article_published_time":"2017-10-23T13:58:54+00:00","article_modified_time":"2023-09-19T13:10:06+00:00","og_image":[{"width":2180,"height":1090,"url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png","type":"image\/png"}],"author":"John Hughes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Hughes","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/"},"author":{"name":"John Hughes","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/person\/0f080762cdcc47aee80f11536fe87242"},"headline":"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)","datePublished":"2017-10-23T13:58:54+00:00","dateModified":"2023-09-19T13:10:06+00:00","mainEntityOfPage":{"@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/"},"wordCount":1136,"commentCount":5,"publisher":{"@id":"https:\/\/themeisle.com\/blog\/#organization"},"image":{"@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png","articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/","url":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/","name":"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)","isPartOf":{"@id":"https:\/\/themeisle.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png","datePublished":"2017-10-23T13:58:54+00:00","dateModified":"2023-09-19T13:10:06+00:00","description":"Learning how to prevent image hotlinking in WordPress can protect you against sites that try to steal your media.","breadcrumb":{"@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#primaryimage","url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png","contentUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/10\/image-hotlinking.png","width":2180,"height":1090,"caption":"prevent image hotlinking in wordpress"},{"@type":"BreadcrumbList","@id":"https:\/\/themeisle.com\/blog\/prevent-image-hotlinking-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/themeisle.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Prevent Image Hotlinking in WordPress (And Why You Should Do It)"}]},{"@type":"WebSite","@id":"https:\/\/themeisle.com\/blog\/#website","url":"https:\/\/themeisle.com\/blog\/","name":"Themeisle Blog","description":"WordPress Tutorials and Reviews for Beginners and Advanced","publisher":{"@id":"https:\/\/themeisle.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/themeisle.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/themeisle.com\/blog\/#organization","name":"VertiStudio","alternateName":"Vertigo Studio SA","url":"https:\/\/themeisle.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png","contentUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png","width":718,"height":156,"caption":"VertiStudio"},"image":{"@id":"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/person\/0f080762cdcc47aee80f11536fe87242","name":"John Hughes","description":"John is a self-taught WordPress designer and developer. He has been working with the CMS for over a decade, and has experience operating as a freelancer and as part of an agency. He\u2019s dabbled in everything from accessible design to website security. Plus, he has extensive knowledge of online business topics like affiliate marketing.","sameAs":["http:\/\/wordcandy.co"],"url":"https:\/\/themeisle.com\/blog\/author\/john-h\/"}]}},"_links":{"self":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/9530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/comments?post=9530"}],"version-history":[{"count":15,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/9530\/revisions"}],"predecessor-version":[{"id":101353,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/9530\/revisions\/101353"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/media\/49150"}],"wp:attachment":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/media?parent=9530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/categories?post=9530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/tags?post=9530"},{"taxonomy":"hashtags","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/hashtags?post=9530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}