How to add extra security to your protected pages in Wix

Adding extra security to your protected pages

Protecting pages within a product provides a basic layer of protection for your website content. However, we recommend adding extra security to each of your protected pages.
There are two main reasons to add extra security to your protected pages:
  1. If a tech-savvy person wants to get around your page protection without joining one of your plans, they can disable Javascript in their browser which will prevent the page protection popup from appearing. However, if your page has extra security, it will simply appear as a blank white screen with no content.
  2. A good way to prevent search engine indexing of protected page content is by adding the extra security code. This sends a strong "do not index" signal to Google and other search engines. This does not necessarily work 100% of the time since search engines can choose to ignore the signal, but that's rare.
When a visitor goes to a page with extra security, they will still see its contents for a second or so before the page protection popup appears. This does not affect customers with access to the protected page.

How to add extra security to your protected pages

Copy this code:

<meta name="robots" content="noindex, nofollow"><style>#__memberspace_modal_protected_page { position:fixed; top:0; left:0; width:100%; height:100%; background:#fff; z-index:2147483646; }</style><div id="__memberspace_modal_protected_page"></div>
  1. Make sure you are logged into your Wix backend.
  2. Click Settings in the left side menu > scroll down to Advanced and click Custom Code:


  3. Click on the Add Custom Code button in the top right:



    Paste the code you previously copied into the code snippet box below.

  4. For the Name section, enter whatever you want (e.g. Extra Security Code).


    For the Add Code to Pages section, click Choose specific page and then select any protected pages you want the extra security code to appear on.


    For the Place Code in section, select Body - start > then click Apply at the bottom:


Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us