{"id":6920,"date":"2018-06-01T12:02:21","date_gmt":"2018-06-01T10:02:21","guid":{"rendered":"https:\/\/blog.unelink.es\/?p=6920"},"modified":"2019-11-22T11:41:55","modified_gmt":"2019-11-22T10:41:55","slug":"proteger-un-directorio-con-contrasena-en-cpanel","status":"publish","type":"post","link":"https:\/\/hosting.airetech.es\/blog\/wiki\/proteger-un-directorio-con-contrasena-en-cpanel\/","title":{"rendered":"Proteger un directorio con contrase\u00f1a en cPanel"},"content":{"rendered":"<p>Si tienes un <a href=\"https:\/\/www.unelink.es\/servidores-dedicados-32.html\" target=\"_blank\" rel=\"noopener noreferrer\">servidor dedicado<\/a>, <a href=\"https:\/\/www.unelink.es\/servidores-virtuales-33.html\" target=\"_blank\" rel=\"noopener noreferrer\">VPS<\/a> o <a href=\"https:\/\/www.unelink.es\/hosting-3.html\" target=\"_blank\" rel=\"noopener noreferrer\">hosting<\/a> con cPanel instalado, puedes <strong>proteger un directorio con contrase\u00f1a<\/strong> f\u00e1cilmente desde el panel de control.<\/p>\n<p>Esta pr\u00e1ctica puede ser de utilidad si, por ejemplo, no <strong>quieres que el p\u00fablico pueda ver el contenido web de un directorio<\/strong> concreto mientras est\u00e1s realizando alg\u00fan desarrollo. De esta forma solo t\u00fa, y quien tenga la contrase\u00f1a, podr\u00eda acceder.<\/p>\n<p>Para ello, lo primero que tienes que hacer es <strong>acceder al cPanel<\/strong> del dominio en el que quieres proteger un directorio.<\/p>\n<div id=\"attachment_6921\" style=\"width: 314px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-cpanel.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6921\" class=\"size-full wp-image-6921\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-cpanel.jpg\" alt=\"Acceso cPanel\" width=\"304\" height=\"347\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-cpanel.jpg 304w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-cpanel-263x300.jpg 263w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/a><p id=\"caption-attachment-6921\" class=\"wp-caption-text\">Acceso cPanel<\/p><\/div>\n<p>En la pantalla principal de cPanel haz <strong>clic en el enlace \"Privacidad del directorio\"<\/strong>, dentro de la secci\u00f3n \"Archivos\".<\/p>\n<div id=\"attachment_6922\" style=\"width: 661px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/herramientas-archivos.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6922\" class=\" wp-image-6922\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/herramientas-archivos.jpg\" alt=\"Herramientas de archivos\" width=\"651\" height=\"201\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/herramientas-archivos.jpg 812w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/herramientas-archivos-300x92.jpg 300w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/herramientas-archivos-768x236.jpg 768w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/herramientas-archivos-600x185.jpg 600w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><p id=\"caption-attachment-6922\" class=\"wp-caption-text\">Herramientas de archivos<\/p><\/div>\n<p>Ver\u00e1s el listado de directorios del dominio. Para navegar en la estructura de directorios, tienes que hacer clic en el icono de la carpeta. Una vez hayas encontrado el directorio que quieres proteger, para seleccionarlo tienes que hacer <strong>clic en el nombre del directorio<\/strong>.<\/p>\n<div id=\"attachment_6923\" style=\"width: 662px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/listado-directorios.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6923\" class=\" wp-image-6923\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/listado-directorios.jpg\" alt=\"Listado de directorios\" width=\"652\" height=\"360\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/listado-directorios.jpg 676w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/listado-directorios-300x166.jpg 300w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/listado-directorios-600x331.jpg 600w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><p id=\"caption-attachment-6923\" class=\"wp-caption-text\">Listado de directorios<\/p><\/div>\n<p>Marca la casilla <strong>\"La contrase\u00f1a protege este directorio\"<\/strong>, indica un <strong>usuario y contrase\u00f1a<\/strong> y, finalmente, pulsa el bot\u00f3n <strong>\"Salvar\"<\/strong>.<\/p>\n<div id=\"attachment_6924\" style=\"width: 661px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/guardar-password.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6924\" class=\" wp-image-6924\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/guardar-password.jpg\" alt=\"Guardar contrase\u00f1a\" width=\"651\" height=\"674\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/guardar-password.jpg 724w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/guardar-password-290x300.jpg 290w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/guardar-password-600x621.jpg 600w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><p id=\"caption-attachment-6924\" class=\"wp-caption-text\">Guardar contrase\u00f1a<\/p><\/div>\n<p>Una vez guardados los cambios, ver\u00e1s que el <strong>icono del directorio ha cambiado a un candado<\/strong>.<\/p>\n<div id=\"attachment_6925\" style=\"width: 579px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/directorios-protegidos.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6925\" class=\"size-full wp-image-6925\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/directorios-protegidos.jpg\" alt=\"Directorios protegidos\" width=\"569\" height=\"392\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/directorios-protegidos.jpg 569w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/directorios-protegidos-300x207.jpg 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/a><p id=\"caption-attachment-6925\" class=\"wp-caption-text\">Directorios protegidos<\/p><\/div>\n<p>Al acceder desde un navegador a un directorio que est\u00e9 protegido por contrase\u00f1a, se te mostrar\u00e1 un <strong>cuadro de di\u00e1logo donde tendr\u00e1s que introducir el usuario y la contrase\u00f1a<\/strong> que hayas definido previamente.<\/p>\n<div id=\"attachment_6926\" style=\"width: 502px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-directorio-protegido.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6926\" class=\"size-full wp-image-6926\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-directorio-protegido.jpg\" alt=\"Acceso a directorio protegido\" width=\"492\" height=\"276\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-directorio-protegido.jpg 492w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2018\/06\/acceso-directorio-protegido-300x168.jpg 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-6926\" class=\"wp-caption-text\">Acceso a directorio protegido<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"Si tienes un servidor dedicado, VPS o hosting con cPanel instalado, puedes proteger un directorio con contrase\u00f1a f\u00e1cilmente desde el panel de control. Esta pr\u00e1ctica puede ser de utilidad si, por ejemplo, no quieres que el p\u00fablico pueda ver el contenido web de un directorio concreto mientras est\u00e1s realizando alg\u00fan desarrollo. De esta forma solo t\u00fa, y quien tenga la&nbsp;<a href=\"https:\/\/hosting.airetech.es\/blog\/wiki\/proteger-un-directorio-con-contrasena-en-cpanel\/\" class=\"read-more\">Seguir leyendo<\/a>","protected":false},"author":1,"featured_media":6922,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[504,512,121,454,491,13,7,8,6],"tags":[68,217,213,214],"class_list":["post-6920","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-cpanel-servidores-virtuales-vps","category-panel-cpanel","category-cuentas","category-cuentas-hosting","category-hosting","category-servidores-dedicados","category-servidores-virtuales-vps","category-wiki","tag-cpanel","tag-hosting","tag-servidores-dedicados","tag-servidores-virtuales-vps","cat-504-id","cat-512-id","cat-121-id","cat-454-id","cat-491-id","cat-13-id","cat-7-id","cat-8-id","cat-6-id"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/6920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/comments?post=6920"}],"version-history":[{"count":3,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/6920\/revisions"}],"predecessor-version":[{"id":8856,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/6920\/revisions\/8856"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media\/6922"}],"wp:attachment":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media?parent=6920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/categories?post=6920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/tags?post=6920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}