View source

Junker.org
[username@junker] $ cd public_html
[username@junker] $ mkdir private
COMMENT: Replace private with the folder you want to protect.
[username@junker] $ cd private
[username@junker] $ htpasswd -c .htpasswd username
New password:
Re-type new password:
Adding password for user username

[username@junker] $ nano .htaccess
COMMENT: In the file type the following (substituting username with your username):

AuthType Basic
AuthName "Special people only!"
AuthUserFile /home/username/public_html/private/.htpasswd
require valid-user

COMMENT: Save the file.
COMMENT: Now visit http://junker.org/~username/private

Real sexy geek stuff:


Trying to get an education here is like
trying to take a drink from a fire hose.


Processing time: 0.020672082901001
Valid HTML 4.01! Powered by FreeBSD