Where your server reads the visitor's IP decides what Bot Protection sees of the visitor, and whether it knows a request as your own server's. Each SDK takes it as its ip option, which your framework's guide shows; the request's other fields are in The call from your server.
The visitor's IP
Behind a proxy or a CDN, send the visitor's IP as your proxy or CDN reports it (CF-Connecting-IP on Cloudflare, the address your own load balancer added to X-Forwarded-For), not one the visitor could have written in a header.
An address that is not on the Internet (10.x, 172.16–31.x, 192.168.x, 100.64–127.x, fc00::/7, fe80::/10) is your own network's: a load balancer's, a proxy's, a container's. It is never a visitor's, so Bot Protection judges that decision as one sent without an IP, and sees much less. It is what a server sends when it reads the connection's address behind a load balancer. When most of your decisions carry one, the Set-up page says so. 127.0.0.1 and ::1, while you test on your machine, are fine. Behind a proxy on the same host (nginx's proxy_pass to localhost) they are the proxy's for every visitor, and the Set-up page says so too once the tag shows your pages are not on localhost.
An address of a CDN's edge (Cloudflare's, Fastly's, CloudFront's, as each publishes its ranges) is the CDN's, the same for every visitor behind it: your server sent the address its own request came from. Bot Protection judges that decision as one sent without an IP too, and when most of your decisions carry one, the Set-up page says so.
Send scheme too, http or https: the scheme your server received the request on, read where you read the IP, from the connection or from what your proxy wrote (X-Forwarded-Proto, Cloudflare's CF-Visitor), never from a header the visitor could write. Over http a browser sends no Client Hints and no Fetch Metadata, and Bot Protection then does not count them missing. The SDKs send it where they read the IP. Another value is read as none, and the Set-up page shows it; without it, their absence is read as over https.
Your own server
A request from your own server (a job that calls your API, a health check, a server that renders your pages) carries a library's User-Agent, such as node or Go-http-client, and none of a browser's headers. When the IP you send is the exact address your server calls /v1/decide from, with your API key, Bot Protection knows the request is your own server's: the answer is allow, unknown, never bot, and the dashboard shows the decision as your own server's. Only that address is trusted, never another of its network: in a cloud, the next address is anyone's. On an action you send protected_action for, your own server's request carries no token either: token_required is true, and in block mode action is block. Send protected_action only on the routes your visitors' browsers take.
Two more locks keep a visitor from claiming that address. Your integration says where it read the IP, in ip_from: peer (the connection), cloudflare (CF-Connecting-IP), last_forwarded (the last entry of X-Forwarded-For, your own proxy's), first_forwarded (its first entry) or custom (a resolver of your own). Only the first three are trusted: the first entry of X-Forwarded-For is the visitor's to write, and with a resolver of your own, or no ip_from, your server's calls are judged as any other, as they were before Bot Protection knew them. And the request carries no token and no browser's User-Agent (one that starts with Mozilla/): a person's browser on your server's address, or a bot that forged it, is judged. The SDKs send ip_from: in Node, each of ipFrom is named, and a function or a string of yours goes as custom; in Go, set IPFrom beside IP (IP: botprotection.CloudflareIP, IPFrom: botprotection.IPFromCloudflare), and with neither the IP is the connection's, peer.
An address a shared platform gives its other customers too is never trusted: a Cloudflare Worker's, a serverless function's or a cloud's outbound address (AWS, Google Cloud, DigitalOcean, as each publishes its ranges), a CDN's edge. Their customers share it, so trusting it would let any of them through. Behind one, your server-to-server calls are judged as any other, unless you list the address among your trusted servers; send the visitor's IP and User-Agent when your server forwards a visitor's request.
Your trusted servers
When your server calls /v1/decide from a shared platform's address, the Set-up page shows a list, your trusted servers: the public addresses your servers reach your protected routes from, at most 16, one per line. Set-up shows it only once such a call came, or while the list holds an address: when your server is trusted from its own calls, nothing is asked. A request whose IP is on the list is your own server's, as above (allow), with the same locks on ip_from, the token and the User-Agent.
Each entry is one exact address, such as 203.0.113.7 or 2001:db8::7, never a range: 203.0.113.0/24 is refused, and /32 too. So is an address of your own network (private, loopback, reserved: write your server's public address) and a CDN's edge. An address on a shared platform's published list (AWS, Google Cloud, DigitalOcean) is accepted on your word, and Set-up warns that it is shared: others on the platform may send from it, and their requests to your protected routes are let through too. List one only when it is yours alone, such as an AWS Elastic IP or a Google Cloud static address, which the platforms publish in one list with their shared pools. It is trusted on your account alone, never on another customer's.