This is an automated archive made by the Lemmit Bot.

The original was posted on /r/selfhosted by /u/JasonLovesDoggo on 2025-01-23 21:57:37+00:00.


Hey r/selfhosted!

I’m thrilled to share Caddy-Defender, a new Caddy module inspired by a discussion right here on this sub! A few days ago, I saw this comment about defending against unwanted traffic, and I thought, “Hey, I can build that!”

What is it?

Caddy-Defender is a lightweight module to help protect your self-hosted services from:

  • 🤖 Bots
  • 🕵️ Malicious traffic
  • ☁️ Entire cloud providers (like AWS, Google Cloud, even specific AWS regions)
  • 🤖 AI services (like OpenAI, Deepseek, GitHub Copilot)

It’s still in its early days, but it’s already functional, customizable, and ready for testing!

Why it’s cool:

Block Cloud Providers/AIs: Easily block IP ranges from AWS, Google Cloud, OpenAI, GitHub Copilot, and more.

Dynamic or Prebuilt: Fetch IP ranges dynamically or use pre-generated lists for your own projects.

Community-Driven: Literally started from a Reddit comment—this is for you!

Check it out here:

👉 Caddy-Defender on GitHub

I’d love your feedback, stars, or contributions! Let’s make this something awesome together. 🚀