{"id":6273,"date":"2017-08-18T18:18:32","date_gmt":"2017-08-18T21:18:32","guid":{"rendered":"https:\/\/blog.hostinger.io\/br-tutoriais\/?p=6273"},"modified":"2023-08-04T20:40:04","modified_gmt":"2023-08-04T23:40:04","slug":"seguranca-no-wordpress","status":"publish","type":"post","link":"\/br\/tutoriais\/seguranca-no-wordpress","title":{"rendered":"Corrigindo \u2018Desculpe, este tipo de arquivo n\u00e3o \u00e9 permitido por raz\u00f5es de seguran\u00e7a do WordPress&#8217;"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Depois de definir sua hospedagem de sites e o <a href=\"\/br\/tutoriais\/o-que-e-cms\"><strong>CMS<\/strong><\/a>, neste caso o WordPress, &eacute; hora de gerenciar o seu site atrav&eacute;s das ferramentas escolhidas. Mas surpresas v&atilde;o acontecer pelo caminho. <\/span><\/p><p><span style=\"font-weight: 400\">Se ao tentar subir um arquivo, voc&ecirc; recebeu o seguinte erro: <\/span><b>&lsquo;<i>Desculpe, este tipo de arquivo n&atilde;o &eacute; permitido por raz&otilde;es de seguran&ccedil;a no wordPress<\/i>&lsquo;<\/b>,<b>&nbsp;<\/b>b<span style=\"font-weight: 400\">em, voc&ecirc; n&atilde;o est&aacute; sozinho. Este &eacute; um dos erros mais comuns que aparecem. <\/span><\/p><figure class=\"wp-block-image\"><img decoding=\"async\" width=\"900\" height=\"58\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/esse-tipo-de-arquivo-nao-e-permitido.png\/public\" alt=\"esse-tipo-de-arquivo-nao-e-permitido\" class=\"wp-image-6277\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/esse-tipo-de-arquivo-nao-e-permitido.png\/w=900,fit=scale-down 900w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/esse-tipo-de-arquivo-nao-e-permitido.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/esse-tipo-de-arquivo-nao-e-permitido.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/esse-tipo-de-arquivo-nao-e-permitido.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure><p><span style=\"font-weight: 400\">E &eacute; o motivo pelo qual estamos escrevendo este tutorial, afinal manter o seu projeto online vai al&eacute;m da hospedagem de site. No <\/span><a href=\"https:\/\/www.hostinger.com\/br\/tutoriais\/tutorial-wordpress\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400\">tutorial<\/span><\/a><span style=\"font-weight: 400\">, daremos uma olhada mais profunda do porque isso acontece e tamb&eacute;m, como corrigir. Vamos come&ccedil;ar!<\/span><\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/WordPress-Security-Checklist(pt-br).pdf\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"283\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2022\/12\/WordPress-Cheat-Sheet-BR.png\/public\" alt=\"\" class=\"wp-image-30402\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2022\/12\/WordPress-Cheat-Sheet-BR.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2022\/12\/WordPress-Cheat-Sheet-BR.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2022\/12\/WordPress-Cheat-Sheet-BR.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2022\/12\/WordPress-Cheat-Sheet-BR.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2022\/12\/WordPress-Cheat-Sheet-BR.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-o-que-voce-vai-precisar\"><b>O que voc&ecirc; vai precisar<\/b><\/h2><p><span style=\"font-weight: 400\">Antes de come&ccedil;ar este tutorial, voc&ecirc; precisa seguir os seguintes passos: <\/span><\/p><p><span style=\"font-weight: 400\">Acessar a &aacute;rea de admin do WordPress;<\/span><\/p><p><span style=\"font-weight: 400\">Acessar ao WordPress via <\/span><a href=\"https:\/\/www.hostinger.com\/br\/tutoriais\/como-configurar-filezilla\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400\">FTP client<\/span><\/a><span style=\"font-weight: 400\"> ou <\/span><a href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-use-hostinger-file-manager\/\"><span style=\"font-weight: 400\">File Manager<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p><h2 class=\"wp-block-heading\" id=\"h-por-que-surge-este-erro-este-tipo-de-arquivo-nao-e-permitido-por-razoes-de-seguranca\"><b>Por que surge este erro:<\/b><span style=\"font-weight: 400\"> &lsquo;<\/span><b><i>este tipo de arquivo n&atilde;o &eacute; permitido por raz&otilde;es de seguran&ccedil;a&rsquo;?<\/i><\/b><\/h2><p><span style=\"font-weight: 400\">Bem, sempre que voc&ecirc; tentar fazer o upload de um arquivo em um formato diferente dos formatos permitidos, voc&ecirc; ver&aacute; este erro. Por padr&atilde;o, &eacute; permitido que voc&ecirc; carregue:<\/span><\/p><ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400\">Imagens nos formatos: .gif, .png, .jpg e .jpeg; <\/span><\/li>\n\n\n\n<li>Documentos nos formatos: .xls e .xlsx, .pdf, .ppt, .pptx, .pps e .ppsx, .doc e .docx e .odt;<\/li>\n\n\n\n<li><span style=\"font-weight: 400\">&Aacute;udios em: .flv, .mp3, .m4v, .wma, .m4a, .mid, .ogg, .mp4, .wma e .mid <\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400\">V&iacute;deos em: .ogv, .mp4, .3gp, .m4v, .avi, .mov, .3g2, .webm, .wmv e .mpg<\/span><\/li>\n<\/ul><p><span style=\"font-weight: 400\">Al&eacute;m disso, outros formatos de arquivo como .zip e .key tamb&eacute;m s&atilde;o permitidos. Assim, sempre que voc&ecirc; tenta fazer o upload de um arquivo em um formato diferente dos especificados acima, o WordPress lan&ccedil;a um erro. Agora, vamos dar uma r&aacute;pida olhada em como isso pode ser corrigido.<\/span><\/p><h2 class=\"wp-block-heading\" id=\"h-corrigindo-este-tipo-de-arquivo-nao-e-permitido-por-razoes-de-seguranca\"><b>Corrigindo<\/b><span style=\"font-weight: 400\">: &lsquo;<\/span><b><i>este tipo de arquivo n&atilde;o &eacute; permitido por raz&otilde;es de seguran&ccedil;a&rsquo;<\/i><\/b><\/h2><h3 class=\"wp-block-heading\" id=\"h-usando-o-um-plugin-do-wordpress\"><b>Usando o um plugin do WordPress<\/b><\/h3><p><span style=\"font-weight: 400\">Voc&ecirc; pode corrigir facilmente o erro usando os plugins do WordPress. Existem v&aacute;rios plugins que voc&ecirc; pode usar. Por exemplo, os <\/span><a href=\"https:\/\/wordpress.org\/plugins\/pro-mime-types\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400\">tipos ProMime<\/span><\/a><span style=\"font-weight: 400\">. A melhor parte deste plugin &eacute; a capacidade de trabalhar tanto para o singlesite como para o multisite.<\/span><\/p><p><span style=\"font-weight: 400\">Tudo o que voc&ecirc; precisa fazer &eacute;:<\/span><\/p><ol class=\"wp-block-list\">\n<li><span style=\"font-weight: 400\">Instale o plugin e ative-o.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400\">Navegue para <\/span><b>Setttings<\/b><span style=\"font-weight: 400\"> -&gt; <\/span><b>Configura&ccedil;&otilde;es do tipo MIME<\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400\">Agora, voc&ecirc; precisa adicionar o valor do tipo mime para a extens&atilde;o de arquivo que deseja enviar. Voc&ecirc; pode encontrar quase <\/span><a href=\"http:\/\/www.freeformatter.com\/mime-types-list.html\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400\">todos os tipos de mimes aqui<\/span><\/a><span style=\"font-weight: 400\"> . O tipo Mime deve ser adicionado em um formato espec&iacute;fico. Por exemplo, para permitir o upload de arquivos <\/span><b>.abiword<\/b><span style=\"font-weight: 400\">, voc&ecirc; precisa adicionar a seguinte linha:<\/span><\/li>\n\n\n\n<li>\n<pre class=\"lang:default decode:true\">AbiWord         =application\/x-abiword\n<img decoding=\"async\" class=\"alignnone size-full wp-image-6276\" src=\"https:\/\/blog.hostinger.io\/br-tutoriais\/wp-content\/uploads\/sites\/53\/2017\/08\/arrumar-wordrpress.png\" alt=\"arrumar-wordrpress\" width=\"900\" height=\"525\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/arrumar-wordrpress.png\/w=900,fit=scale-down 900w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/arrumar-wordrpress.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/arrumar-wordrpress.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/arrumar-wordrpress.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/pre>\n<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-ao-editar-o-arquivo-em-php-wp-config-php\"><b>Ao editar o arquivo em PHP wp-config.php<\/b><\/h2><p><span style=\"font-weight: 400\">Se alguns dos plugins acima n&atilde;o funcionarem para voc&ecirc;, voc&ecirc; tamb&eacute;m pode edit&aacute;-lo em <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400\"> and depois alterar as extens&otilde;es.<\/span><br><\/p><p>\n\n\n<div><p class=\"important\"><span style=\"font-weight: 400\">IMPORTANTE: N&atilde;o &eacute; recomendado usar um m&eacute;todo que deixe o seu projeto no WordPress menos seguro. Se voc&ecirc; j&aacute; tiver enviado o arquivo, certifique-se de refazer as mudan&ccedil;as no arquivo <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400\">.<\/span><\/p><\/div>\n\n\n\n<\/p><p><span style=\"font-weight: 400\">Tudo que voc&ecirc; precisa &eacute;:<\/span><\/p><ol class=\"wp-block-list\">\n<li><span style=\"font-weight: 400\">Conectar seu website utilizando um CLIENTE <a href=\"\/br\/tutoriais\/ftp-o-que-e-como-funciona\">FTP<\/a> ou um GERENCIADOR de ARQUIVO.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400\">Acesse no WordPress o diret&oacute;rio de instala&ccedil;&atilde;o e procure por <\/span><b>wp-config.php. <\/b><\/li>\n<\/ol><p><span style=\"font-weight: 400\"> &nbsp;&nbsp;&nbsp;&nbsp;Abra o arquivo e edite-o.<\/span><\/p><figure class=\"wp-block-image\"><img decoding=\"async\" width=\"900\" height=\"680\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/wp-edit.png\/public\" alt=\"wp-edit\" class=\"wp-image-6275\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/wp-edit.png\/w=900,fit=scale-down 900w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/wp-edit.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/wp-edit.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2017\/08\/wp-edit.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure><ol class=\"wp-block-list\" start=\"3\">\n<li><span style=\"font-weight: 400\"> Cole a linha de c&oacute;digo acima da linha que diz: `Isso &eacute; tudo, pare de editar! Feliz Blog&rsquo;. (<\/span><i><span style=\"font-weight: 400\">That&rsquo;s all, stop editing! Happy blogging<\/span><\/i><span style=\"font-weight: 400\">).<\/span><\/li>\n\n\n\n<li>\n<pre class=\"lang:default decode:true \">define('ALLOW_UNFILTERED_UPLOADS', true);\n<\/pre>\n<\/li>\n\n\n\n<li><span style=\"font-weight: 400\"> Defina &lsquo;permiss&atilde;o_sem filtros_suba os arquivos&rsquo; (`Allow_unfiltered_uploads`).<\/span><\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-contate-seu-provedor-de-hospedagem-de-sites\"><b>Contate seu provedor de hospedagem de sites<\/b><\/h2><p><span style=\"font-weight: 400\">Se voc&ecirc; j&aacute; tentou todos os passos acima mencionados e nada funcionou, contate seu provedor de hospedagem de sites. Se voc&ecirc; &eacute; um cliente Hostinger, <a href=\"\/br\/contatos\">contate o time de atendimento ao cliente<\/a> via chat ao vivo e eles ter&atilde;o prazer em lhe atender.<\/span><\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/br\/hospedagem-wordpress\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2024\/06\/BR-New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-44638\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2024\/06\/BR-New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2024\/06\/BR-New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2024\/06\/BR-New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/53\/2024\/06\/BR-New-WP_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusao\">Conclus&atilde;o<\/h2><p>Esse tipo de mensagem <em>&ldquo;este tipo de arquivo n&atilde;o &eacute; permitido por raz&otilde;es de seguran&ccedil;a&rdquo;<\/em> <span style=\"font-weight: 400\">pode ser inoportuna. Mas lembre-se que, ainda que agora voc&ecirc; j&aacute; saiba como corrigir o erro, garante que a, de tamb&eacute;m usar um <a href=\"\/br\/hospedagem-wordpress\">servidor para WordPress<\/a> de qualidade no seu site. Esperamos que o tutorial tenha lhe ajudado e que guie seus projetos com sucesso.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Depois de definir sua hospedagem de sites e o CMS, neste caso o WordPress, &eacute; hora de gerenciar o seu site atrav&eacute;s das ferramentas escolhidas. Mas surpresas v&atilde;o acontecer pelo caminho. Se ao tentar subir um arquivo, voc&ecirc; recebeu o seguinte erro: &lsquo;Desculpe, este tipo de arquivo n&atilde;o &eacute; permitido por raz&otilde;es de seguran&ccedil;a no [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/br\/tutoriais\/seguranca-no-wordpress\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":74,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"rank_math_title":"Corrigir \"Este Tipo de Arquivo N\u00e3o \u00e9 Permitido Por Raz\u00f5es de Seguran\u00e7a\" no WP","rank_math_description":"Voc\u00ea tentou recentemente subir um arquivo no WordPress, e recebeu o erro descrito acima. Veja como arrumar isso em nosso post.","rank_math_focus_keyword":"tipo de arquivo n\u00e3o \u00e9 permitido por raz\u00f5es de seguran\u00e7a","footnotes":""},"categories":[4911],"tags":[5041,5044,4918,4798,5011,5045],"class_list":["post-6273","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-hospedagem-de-sites","tag-seguranca-wordpress","tag-temas-wordpress","tag-wordpress","tag-wordpress-download","tag-wordpress-temas"],"hreflangs":[{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/seguranca-no-wordpress","default":1},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/seguranca-no-wordpress","default":0}],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/posts\/6273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/comments?post=6273"}],"version-history":[{"count":21,"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/posts\/6273\/revisions"}],"predecessor-version":[{"id":38982,"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/posts\/6273\/revisions\/38982"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/media?parent=6273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/categories?post=6273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp-json\/wp\/v2\/tags?post=6273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}