Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento密码锁前端?_Magento_Magento 1.7_Magento 1.8 - Fatal编程技术网

Magento密码锁前端?

Magento密码锁前端?,magento,magento-1.7,magento-1.8,Magento,Magento 1.7,Magento 1.8,我想创建一个Magento测试网站并输入首页密码,基本上是为了查看您必须登录的前端。阻止除开发人员以外的所有人访问该网站 有什么帮助吗 如果您使用的是Apache,则需要一个.htpasswd文件,以及对.htaccess的更新 使用类似的方法帮助生成.htpasswd文件(密码已加密)。在要保护的位置之外创建文件。然后使用以下内容更新.htaccess文件: AuthType Basic AuthName "Password Protected Area" AuthUserFile /path

我想创建一个Magento测试网站并输入首页密码,基本上是为了查看您必须登录的前端。阻止除开发人员以外的所有人访问该网站


有什么帮助吗

如果您使用的是Apache,则需要一个
.htpasswd
文件,以及对
.htaccess
的更新

使用类似的方法帮助生成
.htpasswd
文件(密码已加密)。在要保护的位置之外创建文件。然后使用以下内容更新
.htaccess
文件:

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user

你可以通过过滤ip来做到这一点。允许网站仅对您的ip开放