An IP list is a public file naming every address your bot sends from. Put it at a stable HTTPS address on your domain, as plain text, JSON or CSV, and give that address to Cloudflare when you apply. It only works if the addresses are used by your bot and nothing else (Cloudflare).
The problem it solves
A site sees your bot's IP address on every request, but it can't tell who owns that address. Your bot's name in the user agent can be copied by anyone. A published list closes the gap: the site checks whether the request came from an address on your list, and if it did, the request really came from you.
This is how the biggest crawlers do it. Google publishes JSON files of its crawler ranges, split by type: common crawlers, special-case crawlers and user-triggered fetchers (Google).
The catch: the addresses must be yours alone
Cloudflare requires "a fixed and limited set of IP addresses" used only by the bot owner (Cloudflare). It removes verified bots that add addresses not used solely by them, or that add ranges they didn't disclose (policy).
That rules out most cheap setups:
- Shared cloud addresses: other customers send from the same addresses.
- Rotating proxies: the addresses change and are shared with strangers.
- A home connection: the address can change, and your ISP's other customers share the block.
What a dedicated address costs today
| Option | What you get | Price | Fits an IP list? |
|---|---|---|---|
| QuotaGuard Static, shared | 2 static IPs shared with other customers | $19 to $89 a month | No: shared |
| QuotaGuard Static, Enterprise | 2 dedicated static IPs | $219 a month | Yes |
| Fixie | Static IPs, shared at every tier | From free; Hybrid $49 a month | No: shared |
| Static ISP proxies | One fixed proxy IP | About $1 to $3 per IP a month (fdaytalk) | Often no: you don't control reverse DNS or who held it before |
| Your own server with a fixed IP | One address you control | Varies by host | Yes, if no one else uses it |
Step 1: list your ranges
Write down every address or range your bot sends from, IPv4 and IPv6. Use CIDR notation, such as /32 for one IPv4 address. Leave out anything shared with other services, such as your website or mail server.
Step 2: build the file
This script merges and sorts your ranges, refuses private or malformed ones, and writes a plain-text list and a JSON list.
import ipaddress
import json
import sys
from datetime import datetime, timezone
def build(ranges):
nets = sorted({ipaddress.ip_network(r, strict=True) for r in ranges},
key=lambda n: (n.version, n.network_address, n.prefixlen))
for n in nets:
if not n.is_global:
raise ValueError(f"{n} is not a public address range")
collapsed = (list(ipaddress.collapse_addresses(n for n in nets if n.version == 4))
+ list(ipaddress.collapse_addresses(n for n in nets if n.version == 6)))
text = "\n".join(str(n) for n in collapsed) + "\n"
data = {
"updated": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
"prefixes": [{"ipv4Prefix" if n.version == 4 else "ipv6Prefix": str(n)} for n in collapsed],
}
return text, json.dumps(data, indent=2) + "\n"
if __name__ == "__main__":
text, js = build(sys.argv[1:])
with open("bot-ips.txt", "w") as f:
f.write(text)
with open("bot-ips.json", "w") as f:
f.write(js)
print(text, end="")Run it with your ranges:
python make_ip_list.py 198.51.100.0/29 2001:db8:42::/48(Those two are documentation ranges; the script refuses them on purpose. Use your real ones.)
The plain-text file has one range per line. Cloudflare accepts plain text, JSON or CSV, and doesn't publish a required JSON layout (Cloudflare), so plain text is the safest choice. The JSON layout above is our suggestion.
How we tested it: it merged two adjacent /25 blocks into one /24, removed a duplicate, ordered IPv4 before IPv6, and refused two private ranges and a range with host bits set.
Step 3: publish it
- Serve it over HTTPS from your own domain, such as
https://bot.example.com/ips.txt. - Link it from your bot's public page.
- Keep the URL stable. Cloudflare fetches the list directly (Cloudflare).
Step 4: keep it current
- Add new addresses to the list before your bot sends from them.
- Remove addresses you give up, so the next holder isn't treated as your bot.
- Tell Cloudflare when you add ranges. Adding undisclosed blocks is a listed reason for removal (policy).
Add the other proofs too
An IP list proves where a request came from. Adding reverse DNS and a Web Bot Auth signature gives sites three independent ways to recognize you.
How PacketPaper plans to solve this
The hard part isn't the file. It's getting addresses that are truly yours without paying enterprise prices. PacketPaper's planned Bot Home plan gives you 2 dedicated IPv4 addresses and an IPv6 range from PacketPaper's own block, reverse DNS under your domain, and a published IP list we keep current, for $25 a month. That's about 89% less than the $219 dedicated tier above.
It's planned, not live yet. Join the waitlist.