Basic Protection Generator
Block the probes that hit every server — exposed .git and .env files, leftover backups, known scanner tools — and add a simple rate limit, as Nginx or Apache config.
About this tool
Bots scan every public server for files that should never be online: /.git/config, /.env, backup.sql. This site found its own .git folder being served after a deploy change, which is where this tool came from. The output was tested on real Nginx 1.27 and Apache 2.4 servers during development, including the detail most snippets get wrong: blocking hidden files without also blocking /.well-known/, which Let's Encrypt needs to renew your certificate. See How to use ProxyForge for a walkthrough of every setting.
How it works
Pick Nginx or Apache, then tick the protections you want. Each one is independent.
Copy the result. Part 1 (if shown) goes outside your server block; Part 2 goes inside it.
Test and reload, then check that /.git/config returns 404 and your site still loads.
Want protection that keeps up?
Know the moment something goes wrong:
Some links above are affiliate links — signing up through them may earn this site a small commission at no extra cost to you. See the privacy policy for details.