N
N
nano_e_t_42017-08-04 02:53:05
PostgreSQL
nano_e_t_4, 2017-08-04 02:53:05

How to prevent a user from connecting to databases?

Hello everyone
Please tell me how to "prohibit" the user from connecting to databases via tcp? (in other words, allow the user to connect only locally)
I know that this is done through pg_hba, but I can’t find mmm how to make an exception,
I hope that I correctly formulated the question

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-08-04
@nano_e_t_4

Here: https://www.postgresql.org/docs/9.1/static/auth-pg...
Reject everything except local.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question