Xampp htaccess password
From MS Computech
วิธีการ สร้าง htaccess password protect folder xampp windows
1.cmd
C:\xampplite\apache\bin>htpasswd.exe -c -b folder.users yourusername yourpassword
2.copy folder.users file ไปที่ C:\xampplite\security
หรือ
C:\xampplite\apache\bin>htpasswd.exe -c C:\xampplite\security\folder.users msc Automatically using MD5 format. New password: *** Re-type new password: *** Adding password for user msc
3.create file .htaccess ที่ Folder ที่ต้องการ Protect
4..htaccess
AuthName "Protected Area" AuthType Basic AuthUserFile "C:\xampplite\security\folder.users" require valid-user
จบ
=====================================
Source