---
title: "Discussion on \"Build a Country Allowlist in Cloudflare Workers and Nginx\" | Hashnode"
description: "Discussion on \"Build a Country Allowlist in Cloudflare Workers and Nginx\". A country gate for US and Canada: request.cf first, then the same policy in an Nginx auth_request sidecar."
url: "https://hashnode.com/posts/build-a-country-allowlist-in-cloudflare-workers-and-nginx/6afca5bb894f501fcc8512a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a Country Allowlist in Cloudflare Workers and Nginx](https://networkdatalabs.hashnode.dev/build-a-country-allowlist-in-cloudflare-workers-and-nginx?utm_source=hashnode&utm_medium=feed)

A country gate for US and Canada: request.cf first, then the same policy in an Nginx auth\_request sidecar.

15h ago · 8 min read · networkdatalabs.hashnode.dev  
Read the article

-   [#cloudflare](https://hashnode.com/tag/cloudflare)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Network Data Labs](https://hashnode.com/@networkdatalabs)

@networkdatalabs

  
[View profile](https://hashnode.com/@networkdatalabs)

IP geolocation API with ASN, timezone and risk signals (Tor, hosting, known VPN networks). Free plan: 1,000 requests/day. Docs in English and Spanish.

IP geolocation API with ASN, timezone and risk signals (Tor, hosting, known VPN networks). Free plan: 1,000 requests/day. Docs in English and Spanish.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
