auth_delay
会导致服务器在报告身份验证失败之前短暂停顿,以增加对数据库密码进行暴力破解的难度。请注意,它并不能防止拒绝服务攻击,甚至可能会加剧攻击,因为在报告身份验证失败之前进行等待的进程仍然会占用连接槽。
为了使用此模块,必须通过 postgresql.conf
中的 shared_preload_libraries 来加载它。
这些参数必须在 postgresql.conf
中设置。典型用法可能为
# postgresql.conf shared_preload_libraries = 'auth_delay' auth_delay.milliseconds = '500'
KaiGai Kohei <[email protected]>