One Hat Cyber Team
Your IP :
104.23.197.103
Server IP :
104.21.51.23
Server :
Linux 128-201-239-36.cprapid.com 3.10.0-1160.41.1.el7.x86_64 #1 SMP Tue Aug 31 14:52:47 UTC 2021 x86_64
Server Software :
Apache
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
juscatamarca
/
public_html
/
juzgadosdepaz
/
Edit File:
.htaccess
# ============================================================ # Justicia de Paz – Root .htaccess # Enruta el tráfico del dominio hacia public/ y bloquea # el acceso directo a directorios internos sensibles. # ============================================================ Options -Indexes # ── Entorno local: definir APP_BASE automáticamente ────────── # En producción (dominio real) esta condición no se cumple y # APP_BASE queda vacío (correcto, porque el dominio apunta a # esta carpeta directamente). SetEnvIf Host "^localhost(:\d+)?$" APP_BASE=/justiciapaz # ── Bloquear archivos sensibles ────────────────────────────── <FilesMatch "\.(env|sql|md|log|json|lock|sh|bat)$"> Require all denied </FilesMatch> # ── Bloquear acceso directo a carpetas internas ────────────── RewriteEngine On RewriteRule ^(app|scripts)(/|$) - [F,L] # ── Servir archivos físicos reales directamente ─────────────── # (admin/, assets/, public/ se sirven como están) RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ - [L] # ── Raíz del sitio → public/index.php ──────────────────────── RewriteRule ^$ public/index.php [L] # ── Página pública que existe en public/ → servirla ────────── RewriteCond %{DOCUMENT_ROOT}/public/%{REQUEST_URI} -f RewriteRule ^(.+)$ public/$1 [L] # ── Fallback: todo lo demás → public/index.php ─────────────── RewriteRule ^ public/index.php [L] # 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 php7_module> php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 5000 php_value memory_limit 64M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php74" php_value upload_max_filesize 20M php_flag zlib.output_compression Off </IfModule> <IfModule lsapi_module> php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 5000 php_value memory_limit 64M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php74" php_value upload_max_filesize 20M php_flag zlib.output_compression Off </IfModule> # END cPanel-generated php ini directives, do not edit
Simpan