w*w 发帖数: 14 | 1 我想在我的网页上弄一个链接,一点后,会谈出对话框:需要输用户名和密码的
不知如何做。
多谢 |
s**o 发帖数: 584 | 2 if the host machine is linux or unix, you can use .htaccess
【在 w*w 的大作中提到】 : 我想在我的网页上弄一个链接,一点后,会谈出对话框:需要输用户名和密码的 : 不知如何做。 : 多谢
|
w*w 发帖数: 14 | 3 能具体一点吗?
【在 s**o 的大作中提到】 : if the host machine is linux or unix, you can use .htaccess
|
s**o 发帖数: 584 | 4 Step 1. By creating a file ".htaccess" in your homework directory
(~JohnDoe/www/hwk), all files in that directory will be protected by the
password. Here is what you need to put in the .htaccess file.
AuthUserFile /your-full-path-name/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic
require user whatever
The file refers to a password file which you can put anywhere you like
in your directory system. You have to use the full path name o
【在 w*w 的大作中提到】 : 能具体一点吗?
|
w*w 发帖数: 14 | 5 多谢,让我再琢磨琢磨
【在 s**o 的大作中提到】 : Step 1. By creating a file ".htaccess" in your homework directory : (~JohnDoe/www/hwk), all files in that directory will be protected by the : password. Here is what you need to put in the .htaccess file. : AuthUserFile /your-full-path-name/.htpasswd : AuthGroupFile /dev/null : AuthName ByPassword : AuthType Basic : : require user whatever :
|
s**o 发帖数: 584 | 6 u can use a simple applet with password as a gate 2.
【在 w*w 的大作中提到】 : 多谢,让我再琢磨琢磨
|