用Apache的.htaccess或PHP的header()函数很容易实现基本认证的。你找本中文手册看看就知道了,哪里有?到处都有(你不是在网上吗?)