# IP Allowlist and Country Blocking Alternative for a Shared App: qURL

> IP allowlists and country blocking in Cloudflare, Vercel, AWS WAF, ngrok, nginx and Tailscale compared, and how qURL restricts a shared app by person instead.

Source: https://layerv.ai/compare/qurl-vs-ip-allowlists/

---

[← All Comparisons](https://layerv.ai/compare/) 

# IP Allowlist Alternative: Share a Private App With qURL™

Cloudflare, Vercel, AWS WAF, ngrok, nginx and Tailscale filter by the address a request comes from; qURL names the person who gets in.

An IP allowlist or country block decides by the visitor’s network address: Cloudflare, Vercel, AWS WAF, ngrok, nginx and Tailscale each match the source IP, or the country derived from it, against a rule. qURL by LayerV names the person through an email invitation, an approved request or a device key. A one-time bearer link admits whoever opens it first.

People search for the control their own vendor documents: a Cloudflare country rule, a Vercel firewall block, ngrok IP restrictions, an nginx allow list. Each page describes one product. This one puts the address rules side by side, with what each matches, what it needs and what its documentation says it costs, then explains what qURL does instead: it restricts a shared app by naming the person with an email invitation, an approved request or a device key.

## Restrict a shared app to named people

qURL CLI

```
qurl publish http://127.0.0.1:3000 --access invite_only --name "Ops console" -o json
qurl access invite <CRID> --email ana@example.com -o json
```

## Architectural Difference

**An IP or country rule checks the address a request arrives from.** Cloudflare’s ip.src.country identifies the source IP’s country in ISO 3166-1 Alpha 2 format. Vercel’s Country condition is “the country based on the client IP address”. AWS WAF “determines the country and region of a request based on its IP address”, using MaxMind GeoIP databases. ngrok’s restrict-ips action allows or denies traffic “based on the source IP address of connections to your ngrok endpoints”. nginx’s allow and deny directives limit access “to certain client addresses”. Tailscale’s ip:country posture attribute is the “country associated with the node’s public IP address”. None of these learns who is on the other end. Vercel’s own knowledge base says so: the country rule “follows the network the visitor is on rather than where they live”, and “visitors on a VPN, traveling, or behind a corporate egress in another region will match too”. An allowlist has the mirror problem: an office range admits everyone behind that egress, and your own contractor on a hotel network is turned away.

**qURL checks the person, not the address.** The qURL CLI publishes an app from 127.0.0.1 with no public address, so there is no public endpoint to put a rule in front of. Access is granted per person. qurl access invite admits only the invited mailbox, after the person proves control of it and saves a passkey. --access review lets you approve each verified email. --access email\_capture admits anyone who verifies an email. qurl share prints a link for one recipient that opens once. A grant follows that person to the hotel, the VPN and the office, and revoking one grant removes one person while everyone else keeps access.

**The scope of this walkthrough.** The CLI steps below use named access, not an IP or country rule. They do not test IP-policy enforcement. A region block on a public site is a job for a rule at the edge of that public site; the table below says where each one lives. qURL is for the app that should have no public address at all.

## When an IP allowlist or country block is the right tool

An address rule in Cloudflare, Vercel, AWS WAF, ngrok or nginx is right when the thing it guards is public by design and the question is where requests may come from:

- **A public website that must refuse a region.** The site has a public address on purpose. A country rule at the edge, in Cloudflare, Vercel or AWS WAF, turns that region’s networks away before they reach the origin.
- **A public app reached from fixed office egress ranges.** An allowlist of those ranges in a WAF, in nginx or in ngrok’s restrict-ips action takes the open internet out of the picture. It admits everyone behind the office egress and nobody working from anywhere else.
- **A second layer in front of your own sign-in.** An address rule cuts the traffic that reaches the login page. It does not replace the login, because a matching address says nothing about who is typing.

In each case the rule narrows who can reach a public address by where the request comes from. qURL answers a different question: a private app on your machine that one named person, or a short list of them, should reach from wherever they are. Nothing is public, so there is no address to filter; the invitation, the approval or the one-time link decides.

[Guide: Give a contractor temporary access →](https://layerv.ai/guides/give-a-contractor-temporary-access/) [Guide: Protect a Vercel website →](https://layerv.ai/guides/protect-a-vercel-website/)

## The same job with qURL: name the person

1. Publish the app invite-only: qurl publish http://127.0.0.1:3000 --access invite\_only --name "Ops console" -o json. The reply must show private: true and consumer\_access set to invite\_only. The name is public text that the recipient sees.
2. Invite each person: qurl access invite <CRID> --email ana@example.com -o json. Only that mailbox can get in; strangers cannot ask for access on an invite-only resource.
3. The recipient opens https://qurl.link/<CRID>, sees the resource’s name and who published it, proves control of the invited mailbox and saves a passkey. The access page also offers an emailed access link as a backup to passkeys; that grant is separate and is revoked separately.
4. Check who has access with qurl access list\_grants <CRID> -o json, and end one person’s access with qurl access revoke\_grant <CRID> <decision-id> --version <current-version> -o json. Access is removed only when session\_cleanup reads complete.

For a public team instead of a list, publish with --access review and approve each verified email, or --access email\_capture to admit anyone who verifies an email. Both disclose the consumer’s verified email to you; a verified mailbox is not proof of legal identity.

[qURL access behaviour →](https://layerv.ai/guides/share-localhost-with-temporary-access-link/#access-behaviour) [Guide: Revoke access to a shared app →](https://layerv.ai/guides/revoke-access-to-a-shared-app/)

## Where each control lives and what it needs

Each row follows the vendor’s own documentation, checked on 2026-11-19\. Prices and rule counts are as the vendor states them, not a recommendation.

__Where each control lives and what it needs__
| Control                        | Matches on                                                                                                                                                                                             | Needs                                                                                                                                                                                       | Plan or price noted in docs                                                                                                                                                      |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Cloudflare WAF custom rules    | The source IP, or ip.src.country, “the 2-letter country code in ISO 3166-1 Alpha 2 format” of that IP; the block-a-country example is ip.src.country in {"KP"}                                         | A Cloudflare account with the domain added, and the DNS record proxied so Cloudflare applies WAF rules to its traffic                                                                       | Custom rules on all plans; 5 on Free. No plan restriction is documented for the country field                                                                                    |
| Cloudflare Access country rule | The country of the login’s IP address: the selector “Uses the IP address to determine country”, checked at login and continuously; not identity-based                                                  | An Access application in front of the app, in your Cloudflare account                                                                                                                       | Cloudflare’s blog: the Cloudflare for Teams Free plan “protects up to 50 users at no cost”                                                                                       |
| ngrok restrict-ips             | “The source IP address of connections to your ngrok endpoints”, against IP Policies, “reusable groups of rules for allowing or denying traffic and ngrok dashboard access from specific IPs and CIDRs” | An ngrok account and agent, an IP Policy, and a Traffic Policy with the restrict-ips action on the endpoint                                                                                 | Traffic Policy Units: Free “Not included (can spend credit at $0.10 per 100k)”; Hobbyist and Pay-as-you-go $0.10 per 100k. No plan requirement for restrict-ips itself is stated |
| Vercel WAF custom rules        | IP Address, “the original or forwarded IP address on the incoming request”, and Country, “the country based on the client IP address”                                                                  | A project deployed on Vercel                                                                                                                                                                | All plans; custom rules up to 3 on Hobby, 40 on Pro, 250 on Enterprise. IP blocking and custom rules are “free to use”                                                           |
| AWS WAF geo match              | Country and region, determined “based on its IP address” with MaxMind GeoIP databases; AWS notes accuracy varies by country and type of IP                                                             | An AWS account and a web ACL with a geo match statement in front of the app                                                                                                                 | Web ACL $5.00 per month, rule $1.00 per month, requests $0.60 per million                                                                                                        |
| nginx allow/deny + GeoIP       | allow and deny limit access “to certain client addresses”; ngx\_http\_geoip\_module sets variables “depending on the client IP address, using the precompiled MaxMind databases”                       | Your own nginx in front of the app. The GeoIP module “is not built by default”; the third-party GeoIP2 module needs libmaxminddb and MaxMind’s GeoLite2 databases, which require signing up | The server you run; the free GeoLite2 databases require a MaxMind sign-up                                                                                                        |
| Tailscale ip:country posture   | “Country associated with the node’s public IP address”, an uppercase ISO 3166-1 two-letter code, used as a posture condition in the tailnet policy                                                     | A tailnet with the app’s node and each visitor’s device enrolled                                                                                                                            | “Available with the Standard, Premium, and Enterprise plans”; the ACL table lists geolocation posture attributes as No on Personal                                               |
| qURL                           | The person: the invited mailbox with a passkey, an approved or verified email, a device key, or whoever holds a one-time link, once. This walkthrough uses named access                                | The qurl CLI on the machine that runs the app, and two commands. The recipient needs a browser and, for an invitation, the invited mailbox                                                  | No account: up to 3 active resources, with links that last up to 24 hours. A free account raises that to 10 resources and 30-day links                                           |

## Feature Comparison

| Feature             | qURL                                                                                                                               | IP Allowlists and Country Blocking                                                                                                                                                                                                                                                          |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| What is checked     | The person: an invited mailbox with a passkey, an approved or verified email, a device key, or the holder of a one-time link       | The source IP address, or the country derived from it                                                                                                                                                                                                                                       |
| Where it runs       | On the machine that runs the app, connecting out; the app has no public address                                                    | At the edge or proxy in front of a public address: a CDN or WAF, the tunnel’s edge, your own nginx, or a tailnet’s policy                                                                                                                                                                   |
| Recipient setup     | A browser; for an invitation, the invited mailbox and a passkey                                                                    | Being on an allowed address; for Tailscale, a device enrolled in the tailnet                                                                                                                                                                                                                |
| VPN or travel       | The grant follows the person                                                                                                       | The rule follows the network: Vercel’s guidance says a VPN, travel or a corporate egress in another region all match                                                                                                                                                                        |
| Revoking one person | Revoke that grant; everyone else keeps access                                                                                      | Remove their address, which also removes everyone sharing it; a country rule cannot single out one person                                                                                                                                                                                   |
| Cost line           | up to 3 active resources, with links that last up to 24 hours without an account; a free account for 10 resources and 30-day links | Cloudflare: 5 custom rules on Free. Vercel: 3 custom rules on Hobby, free to use. AWS WAF: $5.00 per web ACL and $1.00 per rule per month, plus $0.60 per million requests. ngrok: Traffic Policy Units at $0.10 per 100k on Hobbyist and Pay-as-you-go. Tailscale: Standard plan and above |

## Which one to use

### Choose qURL to

qURL is for a private app on your machine that one person, or a short list of people, should reach from wherever they are: a contractor’s look at an ops console, a client preview, a dashboard for a reviewer. Name each person with an invitation, or hand over a one-time link, and revoke one grant when the work ends.

[Give a contractor temporary access →](https://layerv.ai/guides/give-a-contractor-temporary-access/)

[Share a dashboard with your company →](https://layerv.ai/guides/share-a-dashboard-with-your-company/)

[Revoke one person’s access →](https://layerv.ai/guides/revoke-access-to-a-shared-app/)

### Using an IP allowlist or a country block today?

An allowlist of office ranges or a country block in Cloudflare, Vercel or nginx in front of a public app narrows who can reach a public address, and it keeps doing that job where the app is public. For the app on your laptop or dev server that a contractor, client or reviewer needs for a while, publish it with qURL and invite them by email: there is no public address to filter, the grant follows the person through VPNs and travel, and qurl access revoke\_grant ends one person’s access.

qURL connects outbound, so you can share your app without opening an inbound port. Keep any other public routes to your app restricted. A link’s expiry controls when it can be opened; an opened session has its own duration. [Explore access and revocation](https://layerv.ai/security/access-controls/).

## Frequently Asked Questions

How does this qURL walkthrough restrict access? 

This qURL walkthrough uses an email invitation, review, email capture or a one-time link for one recipient. It does not configure or test an IP or country rule. An invitation admits the verified mailbox you name; a one-time bearer link admits whoever opens it first.

When is an IP allowlist or country block the right tool? 

When the thing you guard is public by design, in Cloudflare, Vercel, AWS WAF or nginx: a website that must refuse a region, a public app reached only from fixed office egress ranges, or a login page you want fewer networks to reach. The rule turns away requests by where they come from, and Vercel’s own guidance notes that a VPN, travel or a corporate egress in another region all match a country rule. qURL is for the other case: an app with no public address that named people should reach from anywhere.

Does ngrok support IP restrictions? 

Yes. ngrok’s restrict-ips Traffic Policy action allows or denies traffic “based on the source IP address of connections to your ngrok endpoints”, checked against IP Policies, which are “reusable groups of rules for allowing or denying traffic and ngrok dashboard access from specific IPs and CIDRs”. ngrok’s pricing page lists Traffic Policy Units as not included on Free, with credit spendable at $0.10 per 100k, and $0.10 per 100k on Hobbyist and Pay-as-you-go; it states no plan requirement for restrict-ips itself. The rule admits whoever is on an allowed address. qURL admits the invited person from any address.

Can Cloudflare block a country on the free plan? 

Cloudflare documents WAF custom rules as available on all plans, with 5 custom rules on Free, and its block-a-country example uses the expression ip.src.country in {"KP"}. No plan restriction is documented for the ip.src.country field; the older ip.geoip.country still works, but Cloudflare says to use ip.src.country. The domain must be on your Cloudflare account and its DNS record proxied, since Cloudflare applies WAF rules to proxied traffic. A country rule turns away a region’s networks, including your own users on a VPN there; qURL lets one named person in from wherever they are.

Does Vercel’s firewall block by country? 

Yes. Vercel WAF custom rules match Country, “the country based on the client IP address” and a shorthand for the x-vercel-ip-country header, as well as IP Address. Vercel says the WAF is available on all plans, with custom rules up to 3 on Hobby, 40 on Pro and 250 on Enterprise, and that IP blocking and custom rules are free to use. Its knowledge base adds that the country “follows the network the visitor is on rather than where they live”, so visitors on a VPN, traveling, or behind a corporate egress in another region match too. qURL names the person instead of the network.

Can Tailscale restrict by country? 

Yes, through Tailscale device posture. The ip:country posture attribute is the “country associated with the node’s public IP address”, an uppercase ISO 3166-1 two-letter code, and Tailscale says these attributes are available with the Standard, Premium and Enterprise plans; its ACL table lists geolocation posture attributes as No on Personal. It applies to devices enrolled in the tailnet. qURL needs no enrollment: the recipient opens an invitation or a one-time link in a browser.

Who can open a qURL link? 

Whoever holds it, once: with no flags, qurl share prints a single-use link. The documented browser flow starts a session for that browser, which lasts 1 hour by default for an app published from the CLI; another browser on the same public IP cannot use that browser session. A script or agent that opens the link without a browser can be admitted by its network address, which other devices on that public IP may share until the session ends. Keep your app’s own sign-in for anything sensitive. A link admits whoever opens it: the API’s IP and country rules do not apply to the signed links qurl share issues.

## Related Resources

[Guide: Give a contractor temporary access →](https://layerv.ai/guides/give-a-contractor-temporary-access/) [ngrok alternatives with authentication →](https://layerv.ai/compare/ngrok-alternatives-with-auth/) [qURL vs Cloudflare Tunnel with Access →](https://layerv.ai/compare/qurl-vs-cloudflare-tunnel-access/) [Guide: Protect a Vercel website →](https://layerv.ai/guides/protect-a-vercel-website/) [Guide: Revoke access to a shared app →](https://layerv.ai/guides/revoke-access-to-a-shared-app/) [Vendor: Cloudflare, Block traffic from specific countries ↗](https://developers.cloudflare.com/waf/custom-rules/use-cases/block-traffic-from-specific-countries/) [Vendor: ngrok, restrict-ips Traffic Policy action ↗](https://ngrok.com/docs/traffic-policy/actions/restrict-ips/) [Vendor: Vercel, Vercel WAF ↗](https://vercel.com/docs/vercel-firewall/vercel-waf) [Vendor: AWS WAF, Geographic match rule statement ↗](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html) [Vendor: Tailscale, Device posture attributes ↗](https://tailscale.com/docs/features/device-posture/postures-and-attributes)

## Try qURL

Publish an app with the qURL CLI, then share a link.

[Get started →](https://layerv.ai/start/) [Sign up free](https://layerv.ai/qurl/dashboard/keys/)



---

*This markdown version is auto-generated from [https://layerv.ai/compare/qurl-vs-ip-allowlists/](https://layerv.ai/compare/qurl-vs-ip-allowlists/) for AI agents. Curated agent resources: [llms.txt](https://layerv.ai/llms.txt). For the full interactive experience, visit the HTML version.*

