{"id":78,"date":"2008-05-22T10:54:52","date_gmt":"2008-05-22T13:54:52","guid":{"rendered":"http:\/\/www.franklinjr.com\/blog\/index.php\/2008\/05\/22\/bloquear-hotlink-com-htaccess\/"},"modified":"2008-06-28T14:33:03","modified_gmt":"2008-06-28T17:33:03","slug":"bloquear-hotlink-com-htaccess","status":"publish","type":"post","link":"https:\/\/www.franklinjr.com\/blog\/index.php\/2008\/05\/22\/bloquear-hotlink-com-htaccess\/","title":{"rendered":"Bloquear hotlink com htaccess"},"content":{"rendered":"<p>Para proteger imagens do teu site para que outros sites n\u00e3o utilizem teus arquivos, crie um arquivo .htaccess com o seguinte conte\u00fado:<\/p>\n<p>Lembrando que essa configura\u00e7\u00e3o s\u00f3 funcionar\u00e1 para servidores apache.<\/p>\n<p><font color=\"#008000\">RewriteEngine on<br \/>\nRewriteCond %{HTTP_REFERER}    !^$<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/(www\\.)?teusite.com.br\/.*$ [NC]<br \/>\nRewriteRule \\.(gif|jpg|jpeg|bmp|png)$ http:\/\/www.teusite.com.br\/hotlink.gif [R,L]<\/font><\/p>\n<p><font color=\"#000000\">Tecla sap ON:<br \/>\n<\/font><\/p>\n<p><font color=\"#008000\">&#8220;RewriteCond %{HTTP_REFERER} !^http:\/\/(www\\.)?teusite.com.br\/.*$ [NC]&#8221;<\/font><\/p>\n<p>essa linha diz quem vai ter acesso as tuas imagens, ent\u00e3o tu pode definir quais sites poder\u00e3o copiar as imagens do teu site.<\/p>\n<p><font color=\"#008000\">RewriteEngine on<br \/>\nRewriteCond %{HTTP_REFERER}    !^$<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/(www\\.)?teusite.com.br\/.*$ [NC]<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/(www\\.)?google.com.br\/.*$ [NC]<br \/>\nRewriteRule \\.(gif|jpg|jpeg|bmp|png)$ http:\/\/www.teusite.com.br\/hotlink.gif [R,L]<\/font><\/p>\n<p>Agora o google tem permiss\u00e3o para copiar as imagens do teu site \ud83d\ude00<\/p>\n<p>E essa linha \u00e9 a linha do endere\u00e7o de onde estar\u00e1 a imagem que ir\u00e1 aparecer no site de quem pegar tuas imagens:<\/p>\n<p><font color=\"#008000\"> RewriteRule \\.(gif|jpg|jpeg|bmp|png)$ http:\/\/www.teusite.com.br\/hotlink.gif [R,L]<\/font><\/p>\n<p>E \u00e9 isso a\u00ed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para proteger imagens do teu site para que outros sites n\u00e3o utilizem teus arquivos, crie um arquivo .htaccess com o seguinte conte\u00fado: Lembrando que essa configura\u00e7\u00e3o s\u00f3 funcionar\u00e1 para servidores apache. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http:\/\/(www\\.)?teusite.com.br\/.*$ [NC] RewriteRule \\.(gif|jpg|jpeg|bmp|png)$ http:\/\/www.teusite.com.br\/hotlink.gif [R,L] Tecla sap ON: &#8220;RewriteCond %{HTTP_REFERER} !^http:\/\/(www\\.)?teusite.com.br\/.*$ [NC]&#8221; essa linha diz quem [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144,85,47,4],"tags":[564,87,141,69,563,143,92],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-htaccess","category-apache","category-internet","category-coisas-uteis","tag-htaccess","tag-bloquear","tag-hotlink","tag-imagem","tag-imagens","tag-outro","tag-site"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Bloquear hotlink com htaccess - Franklin Jr.<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.franklinjr.com\/blog\/index.php\/2008\/05\/22\/bloquear-hotlink-com-htaccess\/\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/index.php\\\/2008\\\/05\\\/22\\\/bloquear-hotlink-com-htaccess\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bloquear hotlink com htaccess\"}]}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bloquear hotlink com htaccess - Franklin Jr.","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:\/\/www.franklinjr.com\/blog\/index.php\/2008\/05\/22\/bloquear-hotlink-com-htaccess\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.franklinjr.com\/blog\/index.php\/2008\/05\/22\/bloquear-hotlink-com-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.franklinjr.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bloquear hotlink com htaccess"}]}]}},"_links":{"self":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":0,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}