Trusted sources are the addresses allowed to connect to your database. Everyone else is turned away before the password is even checked.
Add an address
- Open your database (Services → your database) and the Trusted sources tab.
- Type an IP address like
203.0.113.7or a range like203.0.113.0/24and click Add. - Or click Add my IP to add the address you're browsing from.
It works within seconds. You can add up to 30 entries.
Remove an address
Click Remove next to it. Apps connecting from that address lose access straight away.
What to add
- The public IP of every server that runs your app.
- Your office or home address if you connect with psql or a GUI tool.
- Platforms with changing addresses (some serverless hosts) need their published range.
No trusted sources at all
If the list is empty, any address can connect with the password (always encrypted). That's handy while testing, but add your addresses as soon as you can.
