cancel
Showing results for 
Search instead for 
Did you mean: 

Password Protect front end

Password Protect front end

Hi
I'm looking for a plugin that can password protect the front end,
It would be good for us to have this during development to make sure that no one can access the site, also during times that we are doing maintenance but need to access the site.

Best would be to have a customizable message for the customer. 

Maybe I'm blind.. but I have not been able to locate any plugin that does this.

7 REPLIES

Re: Password Protect front end

Hi @Vinaren,

 

Which version of Magento are you using?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Password Protect front end

Not exactly your use-case but you might want to give our Force Login module a try.

Re: Password Protect front end


@Damian Culotta wrote:

Hi @Vinaren,

 

Which version of Magento are you using?


Magento 1.9.x free version.

Re: Password Protect front end


@bitExpert wrote:

Not exactly your use-case but you might want to give our Force Login module a try.


Thanks but but it's for magento 2 and does not quite fit what we want.

Re: Password Protect front end

https://magento.stackexchange.com/questions/24389/1-9-0-1-maintenance-mode

 

usually index.php modified like this:

 

$ip = $_SERVER['REMOTE_ADDR'];
$allowed = array('1.2.3.4','1.2.3.4');
if (file_exists($maintenanceFile) && !in_array($ip, $allowed) && strpos($_SERVER['REQUEST_URI'],'/admin_path/') === false && empty($_COOKIE['adminhtml'])) {
    include_once dirname(__FILE__) . '/errors/503.php';
    exit;
}

then you just customize your 503 page template as you like.

------------
MagenX - Magento and Server optimization

Re: Password Protect front end

This is a multi-site installation, we need to close a specific site with password


Re: Password Protect front end

Hi @Vinaren,

 

You can actually put your website into maintenance mode and just customize your maintenance message to customers.

Here is the discussion on the topic for example. This might be the easiest way for you, check it out.

Hope this helps!


Aitoc is a group of distinguished web developers that have been building for Magento since 2009.
See our extensions for Magento 2.