any tips to have restricted inbound and getting connected with postgresql dB

Y_Bharani_mbsv <mailbsv@yahoo.com>

From: Y_Bharani_mbsv <mailbsv@yahoo.com>
To: pgsql-general <pgsql-general@postgresql.org>, Adrian Klaver <adrian.klaver@aklaver.com>
Date: 2024-12-20T19:25:45Z
Lists: pgsql-general
  TeamI have the need to have postgresql db running in multiuser mode and do my needed tasks for few mins.
How to restrict all the application layer , not to get connected with the postgres db ,during my specific time window I am aware of their application layer - username
Changing password is the last option
Any tips