{"id":583,"date":"2003-03-29T21:28:46","date_gmt":"2003-03-29T21:28:46","guid":{"rendered":"http:\/\/sunpig.com\/mt-entry-583.html"},"modified":"2012-03-27T14:45:59","modified_gmt":"2012-03-27T14:45:59","slug":"mod-rewrite","status":"publish","type":"post","link":"https:\/\/sunpig.com\/martin\/2003\/03\/29\/mod-rewrite\/","title":{"rendered":"mod_rewrite"},"content":{"rendered":"<p>Aha&#8230;it looks like <a href=\"http:\/\/www.ezpublishing.com\/\">EZPublishing<\/a> <em>does<\/em> support <a href=\"http:\/\/httpd.apache.org\/docs\/mod\/mod_rewrite.html\">mod_rewrite<\/a> after all.  Well, that&#8217;ll allow me to kill all the <a href=\"http:\/\/idefix.net\/~koos\/irregular.php\/irregular-20020726\">remote linking<\/a> of Alex&#8217;s pictures.  It won&#8217;t stop people grabbing copies of them and hosting them on their own site.  But the password protection will stop them from getting at those photos in the first place.<\/p>\n<pre class=\"code\"><code class=\"htaccess\" data-language=\"htaccess\">RewriteEngine on\nRewriteCond %{HTTP_REFERER} !^$\nRewriteCond %{HTTP_REFERER} !^http:\/\/sunpig.com\/.*$ &#091;NC&#093;\nRewriteCond %{HTTP_REFERER} !^http:\/\/www.sunpig.com\/.*$ &#091;NC&#093;\nRewriteRule .*\\.(jpg|JPG|gif|GIF)$ - &#091;F&#093;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Aha&#8230;it looks like <a href=\"http:\/\/www.ezpublishing.com\/\">EZPublishing<\/a> <em>does<\/em> support <a href=\"http:\/\/httpd.apache.org\/docs\/mod\/mod_rewrite.html\">mod_rewrite<\/a> after all.  Well, that&#8217;ll allow me to kill all the remote linking of Alex&#8217;s pictures.  It won&#8217;t stop people grabbing copies of them and hosting them on their own site.  But the password protection will stop them from getting at those photos in the first place.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-583","post","type-post","status-publish","format-standard","hentry","category-blogging"],"_links":{"self":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/posts\/583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":0,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"wp:attachment":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}