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 offphp_flag register_globals offphp_value session.auto_start onOptions -Indexesphp_flag engine off
AddType text/plain .php
AddType text/plain .phtml
AddType text/plain .php4
AddType text/plain .php3php_flag display_errors offphp_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  .abcAuthUserFile /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_desejadoAuthUserFile /home/USERNAME/www/diretorio_protegido/.htpasswd
AuthType Basic
AuthName "Protegido"
require valid-userhtpasswd -c .htpasswd paulo
htpasswd .htpasswd marcos
htpasswd .htpasswd doraphp_value session.save_path "/home/usuario/_session_/"
php_value session.cookie_lifetime "99999999"
php_value session.cookie_domain ".DOMINIO.com.br"