有时候,我们需要保护自己网站,特别是对于Zencart这类外贸网站来说,需要保护Zencart外贸网站的文件和目录,普通的方法太麻烦,所以就有了这些比较简便的方法。 方法: [php] # basic password protection <IfModule mod_auth.c> AuthUserFile /home/path/.htpasswd AuthName “Username and password required” AuthType Basic <Limit GET POST&g…