Using .htpasswd With Your Linux Shared Hosting Account

To protect a directory in your hosting account with a password, in that directory, create an .htaccess file that contains the following:

AuthUserFile /yourabsolutehostingpath/.htpasswd
AuthGroupFile /dev/null
AuthName "EnterPassword"
AuthType Basic

require valid-user

Where /yourabsolutehostingpath is your hosting account's absolute hosting path. For more information, see Find your absolute path.

The AuthUserFile describes where the Web server looks for the .htpasswd file. The .htpasswd file contains a list of users who have access to a protected directory and their hashed passwords. There are a number of tools available online to create .htpasswd files.

Note: Our servers are configured to prevent the downloading of both .htaccess and .htpasswd files.


Apakah Artikel Ini Berguna?
Terima kasih atas masukan Anda. Untuk berbicara dengan perwakilan layanan pelanggan, hubungi nomor ponsel dukungan atau gunakan opsi chatting di atas.
Senang bisa membantu! Ada hal lain yang dapat kami lakukan untuk Anda?
Maaf tentang hal tersebut. Sampaikan apa yang membuat Anda bingung atau mengapa solusi tersebut tidak mengatasi masalah Anda.