Docs
Country rules for tester pages
Offer a project's test builds only in the countries you choose, or everywhere except some. The country is the one Cloudflare reports for the visitor's network. Signed in members of the workspace always pass, and the dashboard is never limited. Team.
1. Open the project's Testing page
An Owner or Admin finds Country rules there. With no rule, the tester pages open from every country.
2. Pick the rule
Only these countries, or Not these countries.
3. Add countries
Type two letter country codes in Country codes (like DE, FR), or press Use my country, then Add. Up to 50. Remove takes one off; Turn off opens the pages from every country again.
What the rule covers
The project's install pages, channel links, build history page, file downloads, the iOS install manifest, the in-app update check, the follow box and tester feedback. Visitors outside the rule see "This app is not offered in your country" in the page language.
A visitor with no known country (for example over Tor) passes a Not these countries rule and is refused by an Only these countries rule.
What it is not
The rule follows the visitor's network country, so a VPN or a roaming phone changes it. Use it to keep a beta to its launch markets, not as a sanctions, export or compliance control.
Signed in members of the workspace always pass; the dashboard, API tokens, the CLI and the MCP server are never limited. Each change is a security line in the activity feed. A rule kept after a downgrade keeps applying and can be narrowed or turned off; turning it on or adding countries needs Team.
CLI and MCP
Manage the rule from a terminal with an Owner or Admin token. The MCP tool country_rules reads it.
npx appforshare project countries list --project 42
npx appforshare project countries allow CA NZ PH --project 42
npx appforshare project countries block DE --project 43
npx appforshare project countries clear --project 42Questions
- Can I use it with the IP allowlist?
- Yes. Both apply to the same pages; a visitor has to pass both.
- Will it lock out my team?
- No. Signed in members always pass.
- Which plan do I need?
- Team.
See also: Country rules, IP allowlist, Security.