From 7e960f286d42b4aae739332ea91f66a17689d747 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 14 Jul 2021 12:15:34 +0200 Subject: [PATCH] docs: georestrictions compliance Signed-off-by: Andrea Luzzardi --- website/netlify.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/netlify.toml b/website/netlify.toml index 6fccec8d..04f6ca49 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -17,6 +17,14 @@ ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/" command = "yarn build:withoutAuth" +[[redirects]] + # Embargoes compliance. DO NOT REMOVE + conditions = {Country = ["CU", "IR", "KP", "SY", "UA"]} + from = "/*" + to = "/restricted" + status = 302 + force = true + [[redirects]] from = "/github-proxy/*" to = "https://github.com/:splat"