# IP restriction control on Ledger API

**URL:** <https://forum.canton.network/t/ip-restriction-control-on-ledger-api/5719>\
**Category:** App Development\
**Tags:** ledger-api\
**Created:** [November 29, 2022, 4:28am UTC](https://forum.canton.network/t/ip-restriction-control-on-ledger-api/5719 "2022-11-29T04:28:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dorrit\_Du](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/dorrit_du/32/2417_2.png) [@Dorrit\_Du](https://forum.canton.network/u/Dorrit_Du)\
**Post date:** [November 29, 2022, 4:28am UTC](https://forum.canton.network/t/ip-restriction-control-on-ledger-api/5719/1 "2022-11-29T04:28:29Z")

</div>

Hello Team,

Can the ledger api able to config with IP restriction control at source level? We are trying to explore how can we have IP restriction to disallow/block specific, range or geographical region access into the system.

Or what is the best practice to achieve that? doing it via firewall or gateway?

Thanks,  
Dorrit

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [November 29, 2022, 7:41am UTC](https://forum.canton.network/t/ip-restriction-control-on-ledger-api/5719/2 "2022-11-29T07:41:38Z")

</div>

The ledger API itself does not provide that option. Uusually cloud providers like GCP or AWS provide mechanisms to control which IPs can access any service hosted there (including a ledger API server). Alternatively a custom firewall or a reverse proxy like Ngnix also work but are usually more work to setup.

---

<div class="post-metadata">

**Author:** ![Dorrit\_Du](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/dorrit_du/32/2417_2.png) [@Dorrit\_Du](https://forum.canton.network/u/Dorrit_Du)\
**Post date:** [November 30, 2022, 6:51am UTC](https://forum.canton.network/t/ip-restriction-control-on-ledger-api/5719/3 "2022-11-30T06:51:46Z")

</div>

Got it, thanks!
