AuthType Basic
AuthName “Korumali Dizin”
AuthUserFile /home/kullanici-adi/public_html/.htpasswd
<Limit GET>
require valid-user
</Limit>

htaccess içine bunu ekle ve şifrelemek istediğin dizine koy.

AuthUserFile kendine göre düzenlersin örnek olarak yazdım onu.

public_html altına da .htpasswd oluştur.

http://www.kxs.net/support/htaccess_pw.html

şu adreste oluşturduğun kullanıcı adı ve şifreyi htpasswde koyacaksın.