{"id":2319,"date":"2017-02-01T02:07:36","date_gmt":"2017-02-01T02:07:36","guid":{"rendered":"https:\/\/www.calistohosting.com\/blog\/?p=2319"},"modified":"2017-05-24T02:08:02","modified_gmt":"2017-05-24T02:08:02","slug":"como-impedir-el-acceso-a-un-archivo-especifico-en-htaccess","status":"publish","type":"post","link":"https:\/\/www.calistohosting.com\/blog\/2017\/02\/01\/como-impedir-el-acceso-a-un-archivo-especifico-en-htaccess\/","title":{"rendered":"C\u00f3mo impedir el acceso a un archivo espec\u00edfico en htaccess"},"content":{"rendered":"<div id=\"pl-2319\"  class=\"panel-layout\" ><div id=\"pg-2319-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-2319-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-2319-0-0-0\" class=\"so-panel widget widget_sow-editor panel-first-child\" data-index=\"0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<p>El archivo .<strong>htaccess<\/strong> es un archivo de texto oculto dentro de su cuenta de alojamiento que puede ser muy potente. Est\u00e1 dise\u00f1ado para que usted pueda modificarlo para cambiar el comportamiento de su sitio web que normalmente tendr\u00eda un mayor acceso m\u00e1s all\u00e1 de su cuenta. Act\u00faa como un enlace entre su <strong>dominio<\/strong> y el <strong>servidor<\/strong> y puede realizar muchas funciones.<\/p>\n<p>Puede haber ocasiones en las que desea restringir el acceso directo a archivos espec\u00edficos que residen en su cuenta. El <strong>servidor<\/strong> mismo seguir\u00e1 siendo capaz de acceder al archivo y utilizar la informaci\u00f3n. Esto puede hacerse a trav\u00e9s del archivo <strong>htaccess<\/strong>. A continuaci\u00f3n se presentan las instrucciones para impedir el acceso a archivos espec\u00edficos a trav\u00e9s del archivo .<strong>htaccess<\/strong>.<\/p>\n<\/div>\n<\/div><\/div><div id=\"panel-2319-0-0-1\" class=\"so-panel widget widget_sow-editor panel-last-child\" data-index=\"1\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t><h3 class=\"widget-title\">Prevenci\u00f3n del acceso a ciertos archivos mediante htaccess<\/h3>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<p><span title=\"Step 1.First, you will need to log into your cPanel to access the htaccess file.\n\">1.\u00a0Primero, usted necesitar\u00e1 entrar en su <strong>cPanel<\/strong> para tener acceso al archivo de <strong>htaccess<\/strong>.<\/span><\/p>\n<p><span title=\"Step 2.Find the Files category and click on the File Manager icon.\n\">2. Consulte la categor\u00eda de <strong>archivos<\/strong> y haga clic en el icono del <strong>Administrador de archivos<\/strong>.<br \/><\/span><span title=\"cpanel\n\"><br \/><\/span><span title=\"Step 3.In order to select a different domain click on the Settings in the top right corner.\">3. Para seleccionar un dominio diferente, haga clic en <strong>Configuraci\u00f3n<\/strong> en la esquina superior derecha. <\/span><span title=\"For addon domains, click on the dropdown and find your desired addon domain name.\">Para los dominios addon, haga clic en el men\u00fa desplegable y busque el nombre de dominio de complemento deseado. <\/span><span title=\"Be sure the checkbox next to Show Hidden Files is checked.\">Aseg\u00farese de que la casilla de verificaci\u00f3n\u00a0<strong>Mostrar archivos ocultos<\/strong> est\u00e9 marcada. <\/span><span title=\"Click the Save button to enter the File Manager.\n\">Haga clic en el bot\u00f3n <strong>Guardar<\/strong> para ingresar al <strong>Administrador de archivos<\/strong>.<br \/><\/span><span title=\"file-manager-show-hidden\n\"><br \/><\/span><span title=\"Step 4.You should now be in the root folder of the domain you chose.\">4. Ahora deber\u00eda estar en la carpeta ra\u00edz del <strong>dominio<\/strong> que eligi\u00f3. <\/span><span title=\"Look for the .htaccess file and right click on it.\">Busque el archivo .<strong>htaccess<\/strong> y haga clic derecho en \u00e9l. <\/span><span title=\"This brings up a menu.\">Esto abre un men\u00fa. <\/span><span title=\"Find and click on the Edit option.\">Busque y haga clic en la opci\u00f3n <strong>Editar<\/strong>. <\/span><span title=\"If you get a popup box, simply find and click the Edit button in the lower right corner to continue to the editor.\n\">Si obtiene un cuadro emergente, simplemente busque y haga clic en el bot\u00f3n <strong>Editar<\/strong> en la esquina inferior derecha para continuar con el editor.<br \/><\/span><span title=\"file-manager-htaccess\n\"><br \/><\/span><span title=\"Step 5.You are now in the htaccess editor.\">5. Ahora est\u00e1s en el editor <strong>htaccess<\/strong>. <\/span><span title=\"Paste the following code in the file to prevent access to your selected file.\">Pegue el siguiente c\u00f3digo en el archivo para impedir el acceso al archivo seleccionado. <\/span><span title=\"In our example below, we decided to hide the file named filetohide.jpg.\">En nuestro ejemplo a continuaci\u00f3n, decidimos ocultar el archivo denominado <strong>filetohide.jpg<\/strong>. <\/span><span title=\"This can be a file of any tyep (html, jpg, php, etc.)\n\n\">Esto puede ser un archivo de cualquier\u00a0tipo <strong>(html, jpg, php, etc.)<\/strong><\/p>\n<p><\/span><span title=\"&lt;\/files&gt;\n\n\"><span style=\"color: #ff0000;\"># Lo siguiente evita la visualizaci\u00f3n del archivo<\/span><br \/><span style=\"color: #ff0000;\"> &lt;files filetohide.jpg&gt;<\/span><br \/><span style=\"color: #ff0000;\"> order allow,deny<\/span><br \/><span style=\"color: #ff0000;\"> deny from all<\/span><br \/><span style=\"color: #ff0000;\"> &lt;\/files&gt;<\/span><\/p>\n<p><\/span><span title=\"Step 6.Be sure to hit the Save Changes button in the upper right corner to save your new htaccess configuration.\">6. Aseg\u00farese de pulsar el bot\u00f3n <strong>Guardar<\/strong> cambios en la esquina superior derecha para guardar su nueva configuraci\u00f3n de <strong>htaccess<\/strong>.<\/span><\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>El archivo .htaccess es un archivo de texto oculto dentro de su cuenta de alojamiento que puede ser muy potente. Est\u00e1 dise\u00f1ado para que usted pueda modificarlo para cambiar el comportamiento de su sitio web que normalmente tendr\u00eda un mayor acceso m\u00e1s all\u00e1 de su cuenta. Act\u00faa como un enlace&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2452,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[154,151,153],"tags":[156,201,207,155,206,200],"class_list":["post-2319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-htaccess","category-website","category-soporte","tag-cpanel","tag-deny-from-all","tag-files","tag-htaccess","tag-impedir-acceso","tag-order-allow"],"_links":{"self":[{"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/posts\/2319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/comments?post=2319"}],"version-history":[{"count":2,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/posts\/2319\/revisions"}],"predecessor-version":[{"id":2453,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/posts\/2319\/revisions\/2453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/media\/2452"}],"wp:attachment":[{"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/media?parent=2319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/categories?post=2319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/tags?post=2319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}