{"id":33650,"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:05:32","modified_gmt":"2022-05-19T13:05:32","slug":"como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess","status":"publish","type":"post","link":"https:\/\/www.reselhost.pt\/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.\u00a0Voc\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\u00a0<strong>\/wp-admin\/.htaccess<\/strong>\u00a0e deve colocar o seguinte c\u00f3digo em isto.\u00a0N\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>\u00a0\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.\u00a0Voc\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":[191],"tags":[67],"class_list":["post-33650","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 Alojamento Web Portugal Ilimitada cPanel LiteSpeed Web Server \u20ac2,69\/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.pt\/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 Alojamento Web Portugal Ilimitada cPanel LiteSpeed Web Server \u20ac2,69\/m\u00eas\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"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:05:32+00:00\" \/>\n<meta name=\"author\" content=\"suporte\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\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.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\"},\"author\":{\"name\":\"suporte\",\"@id\":\"https:\/\/www.reselhost.pt\/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:05:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\"},\"wordCount\":148,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.reselhost.pt\/kb\/#organization\"},\"keywords\":[\"htaccess\"],\"articleSection\":[\"Seguran\u00e7a cPanel\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\",\"url\":\"https:\/\/www.reselhost.pt\/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.pt\/kb\/#website\"},\"datePublished\":\"2016-09-19T10:45:46+00:00\",\"dateModified\":\"2022-05-19T13:05:32+00:00\",\"description\":\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Alojamento Web Portugal Ilimitada cPanel LiteSpeed Web Server \u20ac2,69\/m\u00eas\",\"breadcrumb\":{\"@id\":\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.reselhost.pt\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.reselhost.pt\/kb\/#website\",\"url\":\"https:\/\/www.reselhost.pt\/kb\/\",\"name\":\"Reselhost\",\"description\":\"Alojamento Web R\u00e1pido e Seguro Revenda Alojamento Web\",\"publisher\":{\"@id\":\"https:\/\/www.reselhost.pt\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.reselhost.pt\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.reselhost.pt\/kb\/#organization\",\"name\":\"Reselhost LLC\",\"url\":\"https:\/\/www.reselhost.pt\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.reselhost.pt\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.reselhost.pt\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg\",\"contentUrl\":\"https:\/\/www.reselhost.pt\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg\",\"width\":500,\"height\":500,\"caption\":\"Reselhost LLC\"},\"image\":{\"@id\":\"https:\/\/www.reselhost.pt\/kb\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.reselhost.pt\/kb\/#\/schema\/person\/2e1bc91579e5af33b02b92b192eef7d3\",\"name\":\"suporte\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.reselhost.pt\/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.pt\/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 Alojamento Web Portugal Ilimitada cPanel LiteSpeed Web Server \u20ac2,69\/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.pt\/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 Alojamento Web Portugal Ilimitada cPanel LiteSpeed Web Server \u20ac2,69\/m\u00eas","og_url":"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/","og_site_name":"Reselhost","article_published_time":"2016-09-19T10:45:46+00:00","article_modified_time":"2022-05-19T13:05:32+00:00","author":"suporte","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"suporte","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#article","isPartOf":{"@id":"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/"},"author":{"name":"suporte","@id":"https:\/\/www.reselhost.pt\/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:05:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/"},"wordCount":148,"commentCount":0,"publisher":{"@id":"https:\/\/www.reselhost.pt\/kb\/#organization"},"keywords":["htaccess"],"articleSection":["Seguran\u00e7a cPanel"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/","url":"https:\/\/www.reselhost.pt\/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.pt\/kb\/#website"},"datePublished":"2016-09-19T10:45:46+00:00","dateModified":"2022-05-19T13:05:32+00:00","description":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess? Revenda de Alojamento Web Portugal Ilimitada cPanel LiteSpeed Web Server \u20ac2,69\/m\u00eas","breadcrumb":{"@id":"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.reselhost.pt\/kb\/como-restringir-o-acesso-ao-diretorio-por-ip-com-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.reselhost.pt\/kb\/"},{"@type":"ListItem","position":2,"name":"Como restringir o acesso ao diret\u00f3rio por IP com .htaccess"}]},{"@type":"WebSite","@id":"https:\/\/www.reselhost.pt\/kb\/#website","url":"https:\/\/www.reselhost.pt\/kb\/","name":"Reselhost","description":"Alojamento Web R\u00e1pido e Seguro Revenda Alojamento Web","publisher":{"@id":"https:\/\/www.reselhost.pt\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.reselhost.pt\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.reselhost.pt\/kb\/#organization","name":"Reselhost LLC","url":"https:\/\/www.reselhost.pt\/kb\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.reselhost.pt\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.reselhost.pt\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg","contentUrl":"https:\/\/www.reselhost.pt\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg","width":500,"height":500,"caption":"Reselhost LLC"},"image":{"@id":"https:\/\/www.reselhost.pt\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.reselhost.pt\/kb\/#\/schema\/person\/2e1bc91579e5af33b02b92b192eef7d3","name":"suporte","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.reselhost.pt\/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.pt\/kb\/author\/intelhost\/"}]}},"_links":{"self":[{"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/posts\/33650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/comments?post=33650"}],"version-history":[{"count":0,"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/posts\/33650\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/media?parent=33650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/categories?post=33650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reselhost.pt\/kb\/wp-json\/wp\/v2\/tags?post=33650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}