Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
htacces [2013/01/10 11:16] jamoralesm |
htacces [2013/01/10 11:43] (actual) jamoralesm |
||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| - | ===== Bloquear Bots ===== | + | ====== .htaccess ====== |
| - | <file> | + | =====Bloquear Bots===== |
| + | ====bloquear a través de robots.txt==== | ||
| + | <file robots.txt> | ||
| + | User-agent: * | ||
| + | Disallow: / | ||
| + | </file> | ||
| + | |||
| + | ====Bloqueo Robots Maliciosos==== | ||
| + | [[http://www.javascriptkit.com/howto/htaccess13.shtml|Fuente]] | ||
| + | <file htaccess> | ||
| RewriteEngine On | RewriteEngine On | ||
| RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] | RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] | ||
| Línea 82: | Línea 91: | ||
| </file> | </file> | ||
| - | Configurar codificación | + | =====Utilidades===== |
| + | |||
| + | ====Configurar codificación==== | ||
| <file> | <file> | ||
| AddDefaultCharset ISO-8859-1 | AddDefaultCharset ISO-8859-1 | ||
| </file> | </file> | ||
| - | Activar etiquetas cortas PHP | + | ====Activar etiquetas cortas PHP==== |
| <file> | <file> | ||
| php_flag short_open_tag on | php_flag short_open_tag on | ||
| </file> | </file> | ||
| - | # Activar register_globals php | + | ====Activar register_globals php==== |
| <file> | <file> | ||
| php_flag register_globals on | php_flag register_globals on | ||
| </file> | </file> | ||
| - | # display errors | + | ====Display Errors==== |
| <file> | <file> | ||
| php_flag display_errors Off | php_flag display_errors Off | ||
| </file> | </file> | ||