The most effective defense is to turn off directory indexing at the server level.
However, Microsoft officially ended support for Windows 7 on January 14, 2020. Because Windows 7 is a legacy operating system, obtaining a legitimate, working product key through unofficial text files or open directories is highly unreliable and poses significant security risks. The Risks of Using Found Product Keys
: Sites hosting these "index" files often contain malware or phishing scripts. Support Status : Windows 7 reached "End of Life" in January 2020. No Updates
Microsoft Windows 7 Ultimate (32- or 64-bit) GLC-00184 B&H Photo