Skip to main content

How to install Photolock?

Photolock can be installed on any website in a matter of minutes. After you install it, you will be able to control and limit the actions that your website's visitors can take on your site.

On this page

General Installation

Add the JavaScript code

Paste the code below right before the closing head tag of every page. Please remember to replace the web domain mywebsite.com in the code with yours.

armor snippet
<script type="text/javascript" id="cybarmorScript" src="https://armor.pasilobus.com/lock.js?shop=mywebsite.com" async defer></script>
<noscript id="cybarmorNoscript"><style>body *{display:none}body:before{content:"Please enable javascript to view this site"}</style></noscript>

Domain Configuration

After you install the script on your site, open your Photolock dashboard. Find Website settings and add your custom domain there.

Your website domain must match the value here. Most websites these days use multiple domains. At a minimum, you have a domain with www and a root domain, as shown below.

www.mysite.com
mysite.com

Photolock only accepts a single domain. Therefore, configuring a primary domain for your website and adding redirects to the primary domain is important. If users visit your site with other domains and there are no redirects to the primary domain, Photolock will not be activated.

Now you're ready to start using Photolock.

Shopify Installation

You can install Photolock at Shopify App Store.

On Shopify App Store page click "Add to My store" and install the app.

The app is automatically installed to your Shopify theme. You just need to activate it in Theme settings. You will be prompted with an activation request upon installation.

  1. Click "Activate". The Shopify theme editor will be opened in a new browser tab.
  2. Click "Save" to activate the app.
  3. Go back to the installation screen and click "I have done this" to verify the installation.

The app will take you to the app dashboard if the activation is successful.

Now you are ready to start using Photolock!.

caution

Remember to save your theme settings before verifying the installation. Otherwise the verification will fail.

Squarespace Installation

Add the JavaScript code

To install Photolock for Squarespace, go to your store’s configuration page and click Settings -> Advanced -> Code Injection.

Replace the domain value with your custom domain in the script below. Under the Header section, paste the script and click Save.

armor snippet
<script type="text/javascript" id="cybarmorScript" src="https://armor.pasilobus.com/lock.js?shop=mywebsite.com" async defer></script>
<noscript id="cybarmorNoscript"><style>body *{display:none}body:before{content:"Please enable javascript to view this site"}</style></noscript>
caution

Photolock will not work if your store is still in private mode. Make sure the store is public.

Domain Configuration

Go to Settings -> Domains and either select Get a Domain or Use a Domain I Own.

Photolock only accepts a single domain. Therefore, configuring a primary domain for your website and adding redirects to the primary domain is important. If users visit your site with other domains and there are no redirects to the primary domain, Photolock will not be activated.

3DCart Installation

Add the JavaScript code

To install Photolock for 3DCart, on the sidebar menu go to Settings -> Design -> Themes and Styles.

Scroll down to Edit Template, then click Open Template Editor

Click the file you would like to edit.

Replace the domain value with your custom domain in the script below and paste it before the head tag, then click Save.

armor snippet
<script type="text/javascript" id="cybarmorScript" src="https://armor.pasilobus.com/lock.js?shop=mywebsite.com" async defer></script>
<noscript id="cybarmorNoscript"><style>body *{display:none}body:before{content:"Please enable javascript to view this site"}</style></noscript>

Domain Configuration

Go to Settings -> General -> Store Settings and click on Manage Domain and Store URL.

When you first signed up your store, you were asked to provide a domain name (if not, 3DCart would have provided a free one). Your domain name should be listed on this page. The domain should be listed as Active -- if not, you can click the Connect link under Action to activate it. If you would like to purchase a domain from 3DCart, click Buy New Domain.

Photolock only accepts a single domain. Therefore, configuring a primary domain for your website and adding redirects to the primary domain is important. If users visit your site with other domains and there are no redirects to the primary domain, Photolock will not be activated.

Finally, update your domain settings in Photolock.

Wix Installation

Add the JavaScript code

Open Wix dashboard and click Settings in the left sidebar and select Custom Code.

Click + Add Custom Code at the top right.

Replace the domain value with your custom domain in the script below and paste it in the text box.

armor snippet
<script type="text/javascript" id="cybarmorScript" src="https://armor.pasilobus.com/lock.js?shop=mywebsite.com" async defer></script>
<noscript id="cybarmorNoscript"><style>body *{display:none}body:before{content:"Please enable javascript to view this site"}</style></noscript>

Enter a name for your code Photolock.

Select an option under Add Code to Pages

All pages: This adds the code to all of your site's pages, including any new pages that you'll create in the future. Choose whether to load the code only once per visit or on each page your visitor opens.

Choose specific pages: Use the drop-down menu to select the relevant pages.

Choose where to place your code.

You will be given three options:

  • Head
  • Body - start
  • Body - end

Select Head for Photolock to activate immediately. Select Body-End to prioritize loading of other content over Photolock.

Domain Configuration

Open Wix site editor and click Settings at the top menu and select Connect Domain.

Complete the wizard and follow steps.

Add your domain to Photolock dashboard. To test Photolock settings, you can also use the temporary domain provided by Wix. Please keep in mind, after you publish your website under a custom domain, you will need to update your domain settings in Photolock dashboard.