    # ──────────────────────────────────────────────────────────
    # /procesos/.htaccess  (v2)
    # ──────────────────────────────────────────────────────────
    Options -Indexes

<IfModule mod_headers.c>
    Header set X-Robots-Tag "noindex, nofollow"
</IfModule>

# Scripts CLI, de prueba o internos: no accesibles por web
<FilesMatch "^(test_.*|hashear_passwords|worker_ia|cron_mantenimiento|tenants(\.example)?|flow_engine_invoke|RedisQueue|ai_agent.*|flow_engine|config)\.php$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>
