09-07-2025 10:35 PM
09-07-2025 10:44 PM
The suspicious traffic in your logs, which is attempting to access .env files, is a common probing technique for sensitive information. Blocking */* and /* URL patterns at the Nginx level is not effective because the malicious requests are targeting a specific, non-standard path. To effectively block this traffic at the firewall, you should create a rule that denies incoming requests from the specific IP addresses observed in the logs, such as 104.23.225.17 and 162.158.111.94. Additionally, you should consider implementing a Web Application Firewall (WAF) or a more sophisticated Nginx rule set that can detect and block requests for .env or other sensitive configuration files based on the URI path, regardless of the source IP address.
09-07-2025 11:15 PM
09-08-2025 12:27 AM
It attack
.env request meaning attacker need to know some info about db of web app.
Let me check how can stop this attack
MHM
09-08-2025 03:31 AM
If you allow https from outside to inside via ACP add IPS to this ACP line.
IPS will silent drop this attack.
MHM
09-08-2025 07:56 AM
Please take a look at these links, it seems possible to protect those sensitive files from the public accesses:
django - Disable public to download files like .env - Stack Overflow
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide