Skip to content
A Magento extension to restrict access to the store front using IP address and/or admin permissions.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Restrict Access Extension for Magento

This extension restricts access to the store front depending on the visitor's IP address, or experimentally, depending on whether they are logged in to the admin area and have appropriate permissions.

It is useful for staging sites, pre-launch, or other times where you don't wish the public to browse a site.

Be very careful using it on a production site. You almost certainly don't want to block public traffic to your site! If your site is down for maintenance you should use more suitable techniques such as maintenance mode or a properly configured holding page.


  • Restricts access to the store front.
  • Allow access from specific IP addresses (whitelist).
  • Allow access from users who are logged in to the admin area (experimental)*
  • Uses no Model or Block rewrites!
  • Requires no additional web server configuration.
  • Shows a notice in the admin area when enabled so you don't leave it enabled by mistake.
  • Clean code.

*Note: allowing access for admin users requires the Magento Cross Area Sessions extension provided by Alan Storm.


Tested on Magento CE Should work on lower versions and equivalent EE.

How to use?

Enable and configure the extension under System -> Configuration -> Leytech Extensions.


Maybe coming soon...

To do

  1. Nothing really. Feature requests welcome.


This extension is provided free of charge as-is. We don't provide free support.


Pull requests and feedback welcome.

You can’t perform that action at this time.