Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
cloudflare-security-art — Cloudflare Free Plan security rules (Zero Trust approach) for small websites | Kitploit
Outils/GitHubGitHub/buybitart/cloudflare-security-art
Defensive ToolsConfiguration AuditingWAF BypassWeb SecurityNetwork SecurityLearning & EducationCurated ResourcesAnti-Bot
GitHubbuybitart/cloudflare-security-art

cloudflare-security-art

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

Voir le dépôt
25017151il y a 3 joursVérifié par Kitploit
Partager
Site web
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

Cloudflare's WAF Rules (Free Plan)

This guide helps you protect your website using Cloudflare's Free Plan. The goal is to make website security simple and reliable with WAF rules, DDoS protection, security headers, and bot settings.

Free Cloudflare WAF rules for artists, bloggers, and small websites. Block unwanted bots, AI crawlers, and suspicious requests with the Free Plan.

It includes:

  • ✅ Firewall rules
  • ✅ DDoS protection
  • ✅ Security headers
  • ✅ Bot management settings

My Cloudflare rule is:

  • ✅ Tested and safe
  • ✅ Does not break your site
  • ✅ Blocks harmful bots, including AI scrapers
  • ✅ Based on a ZERO TRUST approach

AI bots try to copy your content!. See Is AI the greatest art heist in history? and ‘Mass theft’: Thousands of artists call for AI art auction to be cancelled

"One of the main points of art is to dialogue with culture.
Even if unintentional, every piece of art reflects the unique background of its creator-shaped by food, religion, music, ethics, visual art, and more.

Imagine a child raised in isolation, shown only paintings 16 hours a day, and punished if their weekly drawing doesn't replicate those images closely enough. They don’t know why they draw-they just mimic. They aren’t creating. They aren’t dialoguing with art.

A computer is even simpler. It doesn't feel, doesn't reflect, doesn't remember the sound of jazz in the 1920s or the first time it saw Warhol.

But a human artist does.
They carry experience, emotion, and intention. They borrow from the past, mix it with the present, and speak in their own voice. That’s art. That’s the difference.

When art is just imitation for profit, it’s empty. But when it speaks-it matters."

In 2024, OpenAI’s chief technology officer Mira Murati told an interviewer that the creative jobs destroyed by her company’s product maybe “shouldn’t have been there in the first place”.

AI pretend to be search engines, but they don't bring you visitors.
Some even use fake user agents, so basic Cloudflare settings may not stop them. This rule blocks all bots by default, and then only allows useful bots that help your website get indexed. I highly recommend reading Block AI scrapers with Cloudflare and My Blog's Biggest Fans Are AI Bots. So I Fought Back.

So Why I Block AI Bots

  • Save server resources and reduce costs.
  • Keep analytics clean from bot traffic.
  • Protect my content from AI scrapers.
  • Keep my website fast by reducing bot requests.
  • Block fake AI bots used by hackers.
2
StepDescription
STEP 1 – Web Application Firewall (WAF) RulesBlocks bots, crawlers, exploits and malicious requests (Parts 1‑5).
STEP 2 – DDoS L7 Protection & Rate LimitingAdds Layer‑7 override and rate limits to stop floods.
STEP 3 – Bot ManagementConfigures Cloudflare bot settings to block AI and unwanted bots.
STEP 4 – Security HeadersSets recommended HTTP headers to harden the site.

[!IMPORTANT] Bot Fight Mode: Off

I recommend disabling Bot Fight Mode in Cloudflare Security settings.

This guide uses WAF rules to block unwanted bots and AI crawlers. Rule 1 makes exceptions for selected verified bots.

Allowed bot categories:

  • Search Engine Crawler
  • Page Preview
  • Security

User-Agent matches:

  • google
  • bing
  • slurp
  • duckduckbot
  • cloudflare
  • google-inspectiontool
  • google-siteverification
  • telegram
  • googlebot
  • chrome-lighthouse
  • adsbot-google
  • google-adwords
  • let's encrypt

URL path matches:

  • acme-challenge
  • pki-validation

The exception requires a matching verified bot category and one of the listed User-Agent or URL path values.

Bot Fight Mode may challenge these bots, so I keep it disabled.

Note: These exceptions apply only to one part of Rule 1. Other WAF checks and rules can still block these requests.


STEP 1 – Web Application Firewall (WAF) Rules

Copy these expressions into your Cloudflare dashboard for custom WAF rules.

  • Go to Security > WAF > Custom rules.
  • To create a new empty rule, select Create rule.

Read Create a custom rule in the dashboard.

image

Part 1 – Block Bot Parasites

The Cloudflare rule I provide below 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.

NOTE🔒 This rule stops about 90% of all threats. It cuts off bad bot traffic before it reaches the application.

Action: Block


(
  http.user_agent eq ""
  or http.user_agent eq " "
  or http.user_agent eq "'"
  or http.request.headers["user-agent"][0] eq ""
  or lower(http.user_agent) contains "puppeteer"
  or lower(http.user_agent) contains "phantomjs"
  or lower(http.user_agent) contains "selenium"
  or lower(http.user_agent) contains "slimerjs"
  or lower(http.user_agent) contains "nightmare"
  or lower(http.user_agent) contains "casperjs"
  or lower(http.user_agent) contains "pyppeteer"
)
or (
  ip.src.asnum in {135061 23724 4808}
  and http.user_agent contains "siteaudit"
)
or (
  http.host contains ":80"
)
or (
  http.host contains ":443"
)
or (
  http.cookie contains "cf_use_ob="
  and not http.cookie contains "0"
  and not http.cookie contains "80"
  and not http.cookie contains "443"
  and not cf.client.bot
)
or
Télécharger l’outil

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Pas encore de données de popularité.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →