File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
docs/integration/settings Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -40,5 +40,5 @@ DJANGO_FORBID = {
40
40
```
41
41
42
42
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
44
44
their geolocation. The settings also define the URLs to redirect to when access is forbidden.
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ The list of countries to permit or forbid access to. The list accepts country co
43
43
the ones starting with the ` ! ` prefix are forbidden. The list of all codes can be
44
44
found [ here] ( https://www.iban.com/country-codes ) .
45
45
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
+
46
52
## Territories
47
53
48
54
- Key: ` TERRITORIES `
You can’t perform that action at this time.
0 commit comments