Secrets belong outside the document root. Use environment variables or secret management tools (HashiCorp Vault, AWS Secrets Manager, Azure Key Vault).
: Keep up with the latest in cybersecurity to understand how such techniques are used both offensively and defensively. intitle index of secrets new