How to close off external access to PostgreSQL database?

Hi,

I’m running a server from hetzner, and installed a PostgreSQL database within my cleavr setup. How do I close off access from outside to the database? I’m asking because I keep getting these warning messages from abuse@hetzner.com.

Any help is much appreciated.