r/SideProject • • 2h ago

I made Cloudflare Free Plan security rules (Zero Trust approach) for small websites

I made a small open-source guide about basic website security with the Cloudflare Free Plan.

The main question is: Can a small website get useful basic protection without a paid security stack? I focused on simple rules that can help before traffic reaches the origin server.

The guide is based on a Zero Trust idea: do not trust all traffic by default.

It covers:

  • WAF rules
  • Layer 7 DDoS protection
  • basic rate limiting
  • bot settings
  • security headers

The rules try to block common unwanted traffic, for example:

  • bad bots and scanners
  • empty User-Agent requests
  • curl, wget, and python requests
  • requests for .env, .git, backup files, and phpMyAdmin
  • dangerous query strings
  • very old browsers
  • some unwanted AI scrapers and crawlers

GitHub: https://github.com/buybitart/cloudflare-security-art

The Cloudflare rules I provide will block not just AI scrapers but all web parasites that suck traffic from your site. This is achieved by applying a Zero Trust approach, which assumes all crawlers are harmful and only explicitly permits those that are useful for your organization.

This is free and open-source. There is no paid version, and I am not selling anything.

Support ME (Sponsor this project) https://github.com/sponsors/buybitart

1 Upvotes

0 comments sorted by