Security Researcher Detected: You might have ended up here because your site vulnerability scanner found something interesting. Hi! I'm a security engineer and I'm having a good time interacting with the people and bots that are interested in information security.
You will hopefully find this site is well-secured and I'm not interested in being hacked. I'm interested in learning about how people try to hack me, though.
What is this endpoint?
.env.php
A PHP-executable environment file that returns configuration and secrets as a PHP array.
What an attacker could do
If served as text it leaks database credentials, API keys, and app secrets; the .php form is targeted because some stacks store secrets in executable config.
How to defend it
Keep environment files outside the web root, deny access to .env* at the server, load secrets from real environment variables, and rotate anything exposed.
Connect with the Security Engineer
Learn More
Want to dive deeper into this topic? Check out the official documentation.
Read Official Documentation