{"id":192,"date":"2016-09-19T10:45:46","date_gmt":"2016-09-19T10:45:46","guid":{"rendered":"https:\/\/example.com\/wordpress\/?p=192"},"modified":"2022-05-19T11:35:16","modified_gmt":"2022-05-19T13:35:16","slug":"como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess","status":"publish","type":"post","link":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/","title":{"rendered":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess"},"content":{"rendered":"<p>Para proteger sua \u00e1rea de administra\u00e7\u00e3o contra hackers, recomendamos que voc\u00ea permita o acesso apenas de um endere\u00e7o IP selecionado ao seu diret\u00f3rio de administra\u00e7\u00e3o.&nbsp;Voc\u00ea precisa criar um arquivo .htaccess no diret\u00f3rio onde deseja restringir o acesso a endere\u00e7os IP espec\u00edficos.<\/p>\n<p>Por exemplo, se voc\u00ea tiver um blog WordPress instalado em seu diret\u00f3rio principal e efetuar login via example.com\/wp-admin, voc\u00ea deve criar um arquivo .htaccess em&nbsp;<strong>\/wp-admin\/.htaccess<\/strong>&nbsp;e deve colocar o seguinte c\u00f3digo em isto.&nbsp;N\u00e3o se esque\u00e7a de substituir o endere\u00e7o IP permitido pelo seu endere\u00e7o IP.<\/p>\n<pre class=\"language-markup\"><code>order deny, allow\ndeny from all\nallow from YOUR-IP-ADDRESS-HERE<\/code><\/pre>\n<p>(Substitua o texto \u201c <strong>YOUR-IP-ADDRESS-HERE<\/strong>&nbsp;\u201d pelo seu endere\u00e7o IP)<\/p>\n<p>Voc\u00ea pode testar isso acessando seu endere\u00e7o IP \/wp-admin de outro endere\u00e7o IP, que n\u00e3o \u00e9 mencionado em seu arquivo .htaccess.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para proteger sua \u00e1rea de administra\u00e7\u00e3o contra hackers, recomendamos que voc\u00ea permita o acesso apenas de um endere\u00e7o IP selecionado ao seu diret\u00f3rio de administra\u00e7\u00e3o.&nbsp;Voc\u00ea precisa criar um arquivo .htaccess no diret\u00f3rio onde deseja restringir o acesso a endere\u00e7os IP espec\u00edficos. Por exemplo, se voc\u00ea tiver um blog WordPress instalado em seu diret\u00f3rio principal e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[67],"class_list":["post-192","post","type-post","status-publish","format-standard","hentry","category-seguranca-cpanel","tag-htaccess"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Como restringir o acesso ao diret\u00f3rio por IP com .htaccess - Reselhost<\/title>\n<meta name=\"description\" content=\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Hospedagem SSD Contas cPanel Ilimitadas Ativa\u00e7\u00e3o Imediata R$14,99\/m\u00eas\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess - Reselhost\" \/>\n<meta property=\"og:description\" content=\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Hospedagem SSD Contas cPanel Ilimitadas Ativa\u00e7\u00e3o Imediata R$14,99\/m\u00eas\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Reselhost\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/reselhost\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-19T10:45:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-19T13:35:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.reselhost.com.br\/kb\/wp-content\/uploads\/2021\/08\/face-anuncio.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"648\" \/>\n\t<meta property=\"og:image:height\" content=\"441\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"suporte\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@reselhost\" \/>\n<meta name=\"twitter:site\" content=\"@reselhost\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"suporte\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\"},\"author\":{\"name\":\"suporte\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/person\/2e1bc91579e5af33b02b92b192eef7d3\"},\"headline\":\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess\",\"datePublished\":\"2016-09-19T10:45:46+00:00\",\"dateModified\":\"2022-05-19T13:35:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\"},\"wordCount\":153,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#organization\"},\"keywords\":[\"htaccess\"],\"articleSection\":[\"Seguran\u00e7a cPanel\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\",\"url\":\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\",\"name\":\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess - Reselhost\",\"isPartOf\":{\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#website\"},\"datePublished\":\"2016-09-19T10:45:46+00:00\",\"dateModified\":\"2022-05-19T13:35:16+00:00\",\"description\":\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Hospedagem SSD Contas cPanel Ilimitadas Ativa\u00e7\u00e3o Imediata R$14,99\/m\u00eas\",\"breadcrumb\":{\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.reselhost.com.br\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#website\",\"url\":\"https:\/\/www.reselhost.com.br\/kb\/\",\"name\":\"Reselhost\",\"description\":\"Hospedagem WordPress R\u00e1pida R$ 12,99\/m\u00eas com Certificados SSL Gr\u00e1tis\",\"publisher\":{\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.reselhost.com.br\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#organization\",\"name\":\"Reselhost LLC\",\"alternateName\":\"Reselhost\",\"url\":\"https:\/\/www.reselhost.com.br\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.reselhost.com.br\/kb\/wp-content\/uploads\/2023\/05\/logo-grande.png\",\"contentUrl\":\"https:\/\/www.reselhost.com.br\/kb\/wp-content\/uploads\/2023\/05\/logo-grande.png\",\"width\":200,\"height\":200,\"caption\":\"Reselhost LLC\"},\"image\":{\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/reselhost\",\"https:\/\/x.com\/reselhost\",\"https:\/\/www.instagram.com\/reselhost\",\"https:\/\/www.linkedin.com\/in\/reselhost\",\"https:\/\/www.youtube.com\/@reselhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/person\/2e1bc91579e5af33b02b92b192eef7d3\",\"name\":\"suporte\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g\",\"caption\":\"suporte\"},\"sameAs\":[\"https:\/\/www.intelhost.net.br\/kb\"],\"url\":\"https:\/\/www.reselhost.com.br\/kb\/author\/intelhost\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess - Reselhost","description":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Hospedagem SSD Contas cPanel Ilimitadas Ativa\u00e7\u00e3o Imediata R$14,99\/m\u00eas","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.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/","og_locale":"pt_BR","og_type":"article","og_title":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess - Reselhost","og_description":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Hospedagem SSD Contas cPanel Ilimitadas Ativa\u00e7\u00e3o Imediata R$14,99\/m\u00eas","og_url":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/","og_site_name":"Reselhost","article_publisher":"https:\/\/www.facebook.com\/reselhost","article_published_time":"2016-09-19T10:45:46+00:00","article_modified_time":"2022-05-19T13:35:16+00:00","og_image":[{"width":648,"height":441,"url":"https:\/\/www.reselhost.com.br\/kb\/wp-content\/uploads\/2021\/08\/face-anuncio.jpg","type":"image\/jpeg"}],"author":"suporte","twitter_card":"summary_large_image","twitter_creator":"@reselhost","twitter_site":"@reselhost","twitter_misc":{"Escrito por":"suporte","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#article","isPartOf":{"@id":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/"},"author":{"name":"suporte","@id":"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/person\/2e1bc91579e5af33b02b92b192eef7d3"},"headline":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess","datePublished":"2016-09-19T10:45:46+00:00","dateModified":"2022-05-19T13:35:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/"},"wordCount":153,"commentCount":0,"publisher":{"@id":"https:\/\/www.reselhost.com.br\/kb\/#organization"},"keywords":["htaccess"],"articleSection":["Seguran\u00e7a cPanel"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/","url":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/","name":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess - Reselhost","isPartOf":{"@id":"https:\/\/www.reselhost.com.br\/kb\/#website"},"datePublished":"2016-09-19T10:45:46+00:00","dateModified":"2022-05-19T13:35:16+00:00","description":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Hospedagem SSD Contas cPanel Ilimitadas Ativa\u00e7\u00e3o Imediata R$14,99\/m\u00eas","breadcrumb":{"@id":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.reselhost.com.br\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.reselhost.com.br\/kb\/"},{"@type":"ListItem","position":2,"name":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess"}]},{"@type":"WebSite","@id":"https:\/\/www.reselhost.com.br\/kb\/#website","url":"https:\/\/www.reselhost.com.br\/kb\/","name":"Reselhost","description":"Hospedagem WordPress R\u00e1pida R$ 12,99\/m\u00eas com Certificados SSL Gr\u00e1tis","publisher":{"@id":"https:\/\/www.reselhost.com.br\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.reselhost.com.br\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.reselhost.com.br\/kb\/#organization","name":"Reselhost LLC","alternateName":"Reselhost","url":"https:\/\/www.reselhost.com.br\/kb\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.reselhost.com.br\/kb\/wp-content\/uploads\/2023\/05\/logo-grande.png","contentUrl":"https:\/\/www.reselhost.com.br\/kb\/wp-content\/uploads\/2023\/05\/logo-grande.png","width":200,"height":200,"caption":"Reselhost LLC"},"image":{"@id":"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/reselhost","https:\/\/x.com\/reselhost","https:\/\/www.instagram.com\/reselhost","https:\/\/www.linkedin.com\/in\/reselhost","https:\/\/www.youtube.com\/@reselhost"]},{"@type":"Person","@id":"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/person\/2e1bc91579e5af33b02b92b192eef7d3","name":"suporte","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.reselhost.com.br\/kb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g","caption":"suporte"},"sameAs":["https:\/\/www.intelhost.net.br\/kb"],"url":"https:\/\/www.reselhost.com.br\/kb\/author\/intelhost\/"}]}},"_links":{"self":[{"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/posts\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/comments?post=192"}],"version-history":[{"count":0,"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/posts\/192\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/media?parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/categories?post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reselhost.com.br\/kb\/wp-json\/wp\/v2\/tags?post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}