Skip to content

Commit

Permalink
add example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed Dec 2, 2024
1 parent 6a0e905 commit 1191eb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ console.log(globalIp);

// Also optionally takes a platform for additional protection
const platformGuardedGloablIp = ip(request, { platform: "fly-io" });

// You can also pass a list of trusted proxies to ignore
const proxyExcludedGlobalIp = ip(request, { proxies: ["103.31.4.0"] });
```

## Considerations
Expand Down

0 comments on commit 1191eb4

Please sign in to comment.