{"id":480,"date":"2005-03-14T00:05:06","date_gmt":"2005-03-14T05:05:06","guid":{"rendered":"http:\/\/meisterplanet.com\/journal\/2005\/03\/14\/hotlink-prevention\/"},"modified":"2005-03-14T00:05:06","modified_gmt":"2005-03-14T05:05:06","slug":"hotlink-prevention","status":"publish","type":"post","link":"https:\/\/www.meisterplanet.com\/journal\/2005\/03\/14\/hotlink-prevention\/","title":{"rendered":"Hotlink Prevention"},"content":{"rendered":"<p>Like most website owners who pay for their own servers, I&#8217;ve run into the problem of image files being <a href=\"http:\/\/en.wikipedia.org\/wiki\/Hotlink\">hotlinked<\/a> on other websites without permission, resulting in the bandwidth I paid for being used for their benefit.<\/p>\n<p>Fortunately, there are many solutions to this problem, particularly the advice given on <a href=\"http:\/\/www.alistapart.com\/articles\/hotlinking\/\">hotlink prevention<\/a> at <a href=\"http:\/\/www.alistapart.com\">A List Apart<\/a>.<\/p>\n<p>I&#8217;ve implemented the suggestions they&#8217;ve made  almost exactly, though I did have to make two changes.  The first involves changing a line in the  <code>showpic.php<\/code> file from <code>&lt;img src=\"\/&lt;?php echo($pic); ?&gt;\" alt=\"Image\"&gt;<\/code> to <code>&lt;img src=\"&lt;?php echo($pic); ?&gt;\" alt=\"Image\"&gt;<\/code>, as the leading <code>\/<\/code> caused some url directory issues.<\/p>\n<p>The second change involved adding <code>options +followsymlinks<\/code> to the top of my <code>.htaccess<\/code> file because server had it off by default, causing and error with the <code>RewriteRule<\/code> directive.<\/p>\n<p>Otherwise, everything seems to be running perfectly, and anyone accessing those images either through a direct link, viewing this website, or through the RSS feeds should have no problem viewing the images, while any attempts to hotlink from an unauthorized external will return a simple http error, resulting in less bandwidth loss.<\/p>\n<p>However, if you have any problems with viewing images here, please <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#100;&#101;&#114;&#101;&#107;&#64;&#109;&#101;&#105;&#115;&#116;&#101;&#114;&#112;&#108;&#97;&#110;&#101;&#116;&#46;&#99;&#111;&#109;\">let me know<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like most website owners who pay for their own servers, I&#8217;ve run into the problem of image files being hotlinked on other websites without permission, resulting in the bandwidth I paid for being used for their benefit. Fortunately, there are many solutions to this problem, particularly the advice given on hotlink prevention at A List &hellip; <a href=\"https:\/\/www.meisterplanet.com\/journal\/2005\/03\/14\/hotlink-prevention\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hotlink Prevention&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,2],"tags":[],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-general","category-technology","category-websites"],"_links":{"self":[{"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":0,"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meisterplanet.com\/journal\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}