Notifications
Clear all
Des 21, 2022 3:41 pm
1. Masuk ke document root websitenya dan buat file baru dengan nama .htaccess
cd /var/www/html/your_document_root_web nano .htaccess
2. Lalu masukkan script berikut:
AuthType Basic AuthName "Judul" AuthUserFile /var/www//html/judul.password Require valid-user
- Simpan dan exit (ctrl+x, y, enter)
3. Jalankan command:
htpasswd -cb /var/www/html/judul.password usernamenya passwordnya