

# 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_value error_log "/home/iteklabs/logs/php.error.log"
   php_flag log_errors On
</IfModule>
<IfModule lsapi_module>
   php_value error_log "/home/iteklabs/logs/php.error.log"
   php_flag log_errors On
</IfModule>
# END cPanel-generated php ini directives, do not edit

# ============================================================
# CyberSpy URL routing + security
# ============================================================
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^$ pages/home.php [L]
    RewriteRule ^api\.php$ pages/api.php [L,QSA]
    RewriteRule ^(home|dashboard|scan|targets|login|register|logout|pricing|ai_pentest)\.php$ pages/$1.php [L,QSA]
</IfModule>

Options -Indexes

<FilesMatch "(?i)\.(sql|log|bak|old|orig|swp|env|ini|dist|sh)$">
    Require all denied
</FilesMatch>

<IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} ^/(includes|scripts|db)/ [NC]
    RewriteRule ^ - [F,L]
</IfModule>

<FilesMatch "(?i)^\.(git|svn|env|htpasswd)">
    Require all denied
</FilesMatch>

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
    Header always set X-Frame-Options "SAMEORIGIN"
    Header always set Referrer-Policy "strict-origin-when-cross-origin"
    Header always unset X-Powered-By
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
