HackSpotby Amethyst Apps
How it worksWhat we checkPricingGuidesInsightsAbout
Log inCheck my website
HackSpot / Guides

Exposed website files: .git folders, .env files and backups

Some websites accidentally let anyone download their code history, settings file or backups. Why it's serious and what to do the same day.

By HackSpot team (Amethyst Apps) · October 22, 2026 · 1 min read

HackSpot guide: Exposed website files: .git folders, .env files and backups

Short answer: sometimes files that should stay private end up downloadable from a website: the .git folder (code history), the .env file (passwords and keys), backup zips or database dumps. If HackSpot finds one on a site you've verified as yours, treat it as urgent: have your developer block access today and change any passwords or keys those files contain.

Why it's serious

These files often hold database passwords, email and payment keys, and customer data. Anyone who finds them can use them.

How HackSpot checks

Only for websites whose owner has proved they control the domain. We request a short, fixed list of well-known file names, one at a time, and only report a file as exposed when the response really is that file. We never store its contents, just a short proof such as "starts with ref:".

What to do

  1. Ask your developer to block the files today and remove backups from the public website.
  2. Change every password and key that was in them, including the database password.
  3. Check with your developer whether anything was accessed.

Questions people ask

Does HackSpot check other people's websites for these files?

No. These checks only run after the owner proves they control the domain.

We've removed the file. Are we safe now?

Only once the passwords and keys it contained have also been changed.

Sources

  • CWE-527: Exposure of version-control repository (MITRE)
  • Small business guide (NCSC)

Check your website free

See what your website shows the world in about a minute: a plain-language report, who should fix each thing, and a message to send them.

Check my website

Free to check

See what your website shows the world.

Check my website free
HackSpotby Amethyst Apps

Plain-language security checks for your website and the suppliers your business depends on.

HackSpot

  • How it works
  • What we check
  • Free check
  • Pricing

Resources

  • Guides
  • Insights
  • Supplier status

Help

  • About
  • Security
  • Contact us

Amethyst Apps

  • All apps
  • IndexStream
  • Partners

© 2026 Amethyst Apps. Built in the UK.

2G, Ingram House, 227 Ingram Street, Glasgow, G1 1DA, United Kingdom

PrivacyTermsCookiesSecuritySitemapPartners
EnglishEspañolFrançaisDeutschItalianoPortuguêsNederlandsPolskiSvenska日本語
HackSpot