Creating a CloudFlare Whitelist Rule to Allow Bot Access

Tiempo de lectura: < 1 minuto

We will learn today how to add a whitelist rule to allow our server to access Cloudflare when other rules block bots.

You put a secret User-Agent in your code and Cloudflare allows it:

python

headers = { "User-Agent": "TUAPP/1.0 secret123", ... }

Like this, we already have a signature that we can read in Cloudflare.

In Cloudflare:

Marks these options as “WAF components to skip”

Order: First

Leave a Comment