apache autenticando no postgresql
Instalar mod_auth_pgsql. http://www.giuseppetanzilli.it/mod_auth_pgsql2/ .htaccess:
AuthName "SARG - Autenticacao"
AuthType basic

Auth_PG_host 127.0.0.1
Auth_PG_port 5432
Auth_PG_user fwluser
Auth_PG_pwd semsenha
Auth_PG_database fwlnew
Auth_PG_pwd_table usuario
Auth_PG_uid_field usuario
Auth_PG_pwd_field senha
Auth_PG_hash_type MD5
Auth_PG_pwd_whereclause " and adm = true "

(menor que)LIMIT GET POST(maior que)
   require valid-user
(menor que)/LIMIT(maior que)
IP
3.236.51.151