Skip to content

Commit

Permalink
nitpicks in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshY committed Mar 12, 2024
1 parent 0402830 commit 6049d57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/token-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $tokenAuthentication = new TokenAuthentication(
Sign a URL.

```php
// Root directory.
// File in root directory.
$tokenAuthentication->sign(
file: '/bunny.jpg',
expirationTime: 3600,
Expand All @@ -38,7 +38,7 @@ $tokenAuthentication->sign(
allowSubnet: true
);

// Subdirectory.
// File in subdirectory.
$tokenAuthentication->sign(
file: '/css/custom.css',
);
Expand Down Expand Up @@ -101,8 +101,8 @@ $tokenAuthentication->sign(
- In order to reduce the false negatives (and increase privacy) for Token IP validation, the default is to
allow the full `/24` subnet. As an example, a token signed for a user with IPv4 `12.345.67.89` will allow
`12.345.67.0/24` to access the resource.
- The `countriesAllowed`, `countriesBlocked` and `countriesBlocked` accept comma separated input. This means
you could allow or block multiple countries like so: `US,DE,JP`. Same goes for referers: `example.com,example.org`.
- The arguments `countriesAllowed`, `countriesBlocked` and `referrersAllowed` accept comma separated input. This means
you could allow or block multiple countries like so: `US,DE,JP`. Same goes for the allowed referers: `example.com,example.org`.
- An edge case occurs when you add a blocked country to the Traffic Manager, and allow that same country for
token authentication. This will result in a standard **"Unable to connect"** page. According to support *"The reason for
that would be is due to the fact that the Traffic manager doesn't resolve
Expand Down

0 comments on commit 6049d57

Please sign in to comment.