Skip to content

Commit a3dbd21

Browse files
committed
GH-32: Add explanation for specifying location by states
1 parent a642e7a commit a3dbd21

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/integration/settings/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ DJANGO_FORBID = {
4040
```
4141

4242
In this example, the Django Forbid will permit access to users using the listed devices and forbid entry to users
43-
worldwide except for the US, UK, and EU countries. It will also forbid access to the users who use VPN to lie about
43+
worldwide except for the US, GB, and EU countries. It will also forbid access to the users who use VPN to lie about
4444
their geolocation. The settings also define the URLs to redirect to when access is forbidden.

docs/integration/settings/variables.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ The list of countries to permit or forbid access to. The list accepts country co
4343
the ones starting with the `!` prefix are forbidden. The list of all codes can be
4444
found [here](https://www.iban.com/country-codes).
4545

46+
Also, you can permit or forbid access to a certain state of the country by specifying the state code after the country
47+
code is joined with a `:` symbol. For example, `!US:TX` will forbid access to Texas by permitting the rest of the
48+
mentioned country states. With the same principle, the `US:CA` will permit access to California only. The list of all US
49+
state codes can be found [here](https://wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States). This
50+
declaration method can be used with all countries having states/districts.
51+
4652
## Territories
4753

4854
- Key: `TERRITORIES`

0 commit comments

Comments
 (0)