{"id":2328,"date":"2017-02-01T00:48:00","date_gmt":"2017-02-01T00:48:00","guid":{"rendered":"https:\/\/www.calistohosting.com\/blog\/?p=2328"},"modified":"2017-05-24T02:21:02","modified_gmt":"2017-05-24T02:21:02","slug":"como-evitar-el-acceso-a-multiples-tipos-de-archivos-en-htaccess","status":"publish","type":"post","link":"https:\/\/www.calistohosting.com\/blog\/2017\/02\/01\/como-evitar-el-acceso-a-multiples-tipos-de-archivos-en-htaccess\/","title":{"rendered":"C\u00f3mo evitar el acceso a m\u00faltiples tipos de archivos en htaccess"},"content":{"rendered":"<div id=\"pl-2328\"  class=\"panel-layout\" ><div id=\"pg-2328-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-2328-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-2328-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>Es posible que desee restringir el acceso a tipos de archivos espec\u00edficos. Puede haber tipos de archivo en su cuenta que no desee que otros vean. Estos pueden ser archivos como ini (configuraci\u00f3n de inicializaci\u00f3n), archivos de registro, el archivo .<strong>htaccess<\/strong> en s\u00ed, archivos .<strong>htpasswd<\/strong> (contrase\u00f1a), etc. Al implementar alg\u00fan c\u00f3digo en el archivo <strong>htaccess<\/strong>, esto evitar\u00e1 que cualquier extra\u00f1o echa un vistazo a Informaci\u00f3n que no desea que vean.<\/p>\n<\/div>\n<\/div><\/div><div id=\"panel-2328-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\">Evitar el acceso a m\u00faltiples tipos de archivos a trav\u00e9s de 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. Primero, 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.cpanelFind the Files category and click on the File Manager icon.\n\n\">2. Consulte la categor\u00eda <strong>Archivos <\/strong>y haga clic en el icono del<strong> Administrador de archivos<\/strong>.<\/p>\n<p><\/span><span title=\"Step 3.Once the File Manager has loaded, click on the button at the top-right that says Settings\n\n\">3. Una vez que el<strong> Administrador de archivos<\/strong> se ha cargado, haga clic en el bot\u00f3n en la parte superior derecha que dice <strong>Ajustes.<\/strong><\/p>\n<p><\/span><span title=\"Step 4.file-manager-show-hiddenA popup box will appear.\">4.\u00a0<\/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 Go button to enter the File Manager.\n\n\">Haga clic en el bot\u00f3n Ir para ingresar al <strong>Administrador de archivos<\/strong>.<\/p>\n<p><\/span><span title=\"Step 5.file-manager-htaccessYou should now be in the root folder of the domain you chose.\">5. Ahora debes estar en la carpeta ra\u00edz del dominio que hayas elegido. <\/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 Code Edit option.\">Busque y haga clic en la opci\u00f3n <strong>Editar<\/strong> c\u00f3digo. <\/span><span title=\"If you get a popup box, simply find and click the Code Edit button in the lower right corner to continue to the editor.\n\n\">Si obtiene una ventana emergente, simplemente busque y haga clic en el bot\u00f3n <strong>Editar<\/strong> c\u00f3digo en la esquina inferior derecha para continuar con el editor.<\/p>\n<p><\/span><span title=\"Step 6.You are now in the htaccess editor.\">6. 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;\/FilesMatch&gt;\n\n\"><span style=\"color: #ff0000;\">&lt;FilesMatch \".(htaccess|htpasswd|ini|psd|log|sh)$\"&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;\/FilesMatch&gt;<\/span><\/p>\n<p><\/span><span title=\"Step 7.Be sure to hit the Save Changes button in the upper right corner to save your new htaccess configuration.\">7. 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":2458,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[154,151,153],"tags":[201,194,155,199,200],"class_list":["post-2328","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-htaccess","category-website","category-soporte","tag-deny-from-all","tag-filesmatch","tag-htaccess","tag-htpasswd","tag-order-allow"],"_links":{"self":[{"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/posts\/2328","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=2328"}],"version-history":[{"count":2,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/posts\/2328\/revisions"}],"predecessor-version":[{"id":2459,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/posts\/2328\/revisions\/2459"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/media\/2458"}],"wp:attachment":[{"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/media?parent=2328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/categories?post=2328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.calistohosting.com\/blog\/wp-json\/wp\/v2\/tags?post=2328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}