Your website serves a configuration file that holds passwords, database details or keys to other services, and anyone who finds it can use them because automated tools look for this file on every site they visit 1.

Why it matters

Automated tools request files like /.env on every website they visit, because developers often upload them by accident 1. A .env file usually holds database passwords and keys to email, payment or cloud services 1. We only checked that these files load, and we never kept or read their contents beyond recognising what they are 1.

How to tell if this affects you

If you received a security warning stating that a file with passwords or keys is open to anyone on your website, your web server is publicly serving configuration or environment files that should remain private 1.

Can you fix it yourself?

Yes, you or your web developer can resolve this by removing or blocking access to the file and updating any exposed credentials 1.

What to do

  1. Treat every secret in the file as stolen. Change each password and replace each key (database, email, payment, cloud) in the service that issued it, rather than just updating the file, because removing the file does not undo what may already have been copied 1.
  2. Remove the files from the website, or block them in the web server 1. For Apache, deny access to files and folders starting with a dot; for Nginx, add a specific rule that denies them 1. Your host or developer can do this in minutes 1.
  3. Keep development folders off the server. Deploy only the built site, not the underlying source repository 1.
  4. Check for misuse. Look at recent sign-ins and activity in the services whose keys were exposed 1.

Check your fix

Run a rescan. Opening the file's address in a browser should show a "not found" or "forbidden" error page 1.

When to get professional help

If you do not have a web developer or if you are unsure how to adjust your web server configuration files to block sensitive files, ask your hosting provider or a professional IT technician to assist you 1.

Run a free security check for your business at aeolussecurity.ca.