Order deny,allow Deny from all Allow from 189.38.82.2
<Files "*.hospedagem">
AddType application/x-httpd-php .hospedagem
AddHandler application/x-httpd-php .hospedagem
</Files>
php_value register_globals off
ou
php_flag register_globals off
php_value session.auto_start on
Options -Indexes
php_flag engine off AddType text/plain .php AddType text/plain .phtml AddType text/plain .php4 AddType text/plain .php3
php_flag display_errors off
php_value max_execution_time 60 #OBS: 60 é o tempo em segundos, ajustar conforme necesidade.
#alterar index.swf pelo arquivo inicial da pagina DirectoryIndex index.swf
#Consultar Mime em: http://www.iana.org/assignments/media-types/ AddType application/octet-stream .abc
Crie um arquivo de texto em um bloco de notas e salve com o nome ”.htaccess”
AuthUserFile /home/sua_conta/www/diretorio_a_ser_protegido/.htpasswd AuthGroupFile /dev/null AuthName Protegido!! AuthType Basic <Limit GET POST> require user username_desejado </Limit>
htpasswd -c .htpasswd username_desejado
Abaixo exemplo de configurações para múltiplos usuários:
AuthUserFile /home/USERNAME/www/diretorio_protegido/.htpasswd AuthGroupFile /dev/null AuthName Protegido!! AuthType Basic <Limit GET POST> require valid-user </Limit>
htpasswd -c .htpasswd paulo htpasswd .htpasswd marcos htpasswd .htpasswd dora
php_value session.save_path "/home/usuario/_session_/" php_value session.cookie_lifetime "99999999" php_value session.cookie_domain ".DOMINIO.com.br"
~~DISCUSSION~~