Zen Cart Logo
Forums / Customization from the Admin / Prevent/Restrict access to website until offical launch?

Prevent/Restrict access to website until offical launch?

Views: 927

Results 1 to 3 of 3
18 Aug 2014, 9:45 AM
#1
mats369 avatar

mats369

New Zenner

Join Date:
Jun 2014
Location:
Norway
Posts:
5
Plugin Contributions:
0

Prevent/Restrict access to website until offical launch?

Is there a way that I can password proctect or only allowing certain ip's to the whole site before the offical launch?

18 Aug 2014, 10:16 AM
#2
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Prevent/Restrict access to website until offical launch?

I usually just add an index.html page (which overrides the index.php) to the root of the site until the site is ready. however if you already have had spiders on the site this will not stop it being indexed and discoverable in the search engines.

18 Aug 2014, 11:47 AM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Prevent/Restrict access to website until offical launch?

Create, or modify, the .htaccess file in the store's root directory (where the index.php and ipn_main_handler.php reside), adding the following towards the top of the file:

Order Deny,Allow
Deny from all
Allow from 100.100.100.100
Allow from 200.200.200.200

Of course, you'll be specifying the IP addresses that you want to have access instead of the example values! Depending on your payment methods, you might have to add an IP address or range to allow the post-backs to be accepted.