# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
   php_flag display_errors On
   php_value max_execution_time 500
   php_value max_input_time 70
   php_value max_input_vars 1000
   php_value memory_limit 1024M
   php_value post_max_size 130M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php81"
   php_value upload_max_filesize 128M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_value max_execution_time 300
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 1024M
   php_value post_max_size 130M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php81"
   php_value upload_max_filesize 128M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# ========================================
# CONFIGURACIONES DE SEGURIDAD AGREGADAS
# ========================================

# Bloquear listado de directorios
Options -Indexes

# Bloquear acceso directo a archivos PHP desde navegador
# Solo permitir acceso desde el index principal
RewriteEngine On

# Bloquear acceso a archivos de configuracin
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|sql|env|config)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Configurar headers de seguridad bsicos
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options DENY
    Header always set X-XSS-Protection "1; mode=block"
</IfModule>
