---
title: "Protection"
date: 2021-03-10
author: "nK"
---

# Protection

Pro FeatureThis is a part of the **Visual Portfolio Pro** plugin.  
Purchase the Pro plugin to access this and other [advanced features](https://staging.visualportfolio.com/free-vs-pro/).

[Buy Now](https://staging.visualportfolio.com/pricing/)







**Block settings → Protection.** Four ways to limit what a visitor can do with a gallery. They can be combined.

FeatureWhat it doesWhere it is configuredWatermarksServes watermarked copies of the images instead of the originalsSettings → Watermarks (create the copies), then this panel (use them)Password ProtectionHides the gallery behind a password formThis panelAge Gate ProtectionHides the gallery behind a date-of-birth formThis panelRight Click ProtectionBlocks the context menu and dragging on gallery and lightbox imagesThis panelThe Protection panel is not shown for the Social content source.

![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.24.22-1024x583.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.24.22-1024x583.png)    ## Watermarks

SettingDefaultNotes**Add Watermarks to Photos**offWhen on, every image of the gallery, its `srcset`, the lightbox image and the URL click-action link point to the watermarked copyThe copy is used only when it exists for the **current** watermark settings. If the logo, position, size or opacity changed after the copy was made, or the copy is still being generated, the original image is shown until the copy is ready. Create the copies first in **Settings → Watermarks** (Autogenerate, Bulk Generate, or per image in the Media Library). The panel reminds you: “To display watermarked images, you have to create them first: Configure Watermarks Settings”.

Watermarks are never applied to social feed images.

[Demo](https://staging.visualportfolio.com/watermark-protection/)

![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.29.15-1024x583.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.29.15-1024x583.png)    ## Password Protection

SettingDefault**Password Protection**off**Password**`your password here`**Password Form Description**“This gallery is password protected. To view it please enter your password below:”Visitors see the description, a **Password** field and an **Enter** button instead of the gallery. A wrong password shows “The password is incorrect.” After a correct password a cookie is set for 30 days for that gallery, so the visitor is not asked again on that device.

The password is saved in the block settings as plain text. Anyone who can edit the page can read it. The editor preview always shows the gallery, never the form.

[Demo](https://staging.visualportfolio.com/password-protection/)

![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.30.43-1024x583.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.30.43-1024x583.png)    ## Age Gate Protection

SettingDefault**Age Gate Protection**off**Age Gate Limit**18 (1 to 100)**Age Gate Form Description**“This gallery is age-restricted. To view it you must be over 18:”Visitors see the description, a **Birthday** date field and **Enter**. A birthday below the limit shows “Your age is less than necessary.” A passing birthday sets one cookie for 30 days that is shared by every age-gated gallery on the site, so the visitor confirms once.

Search engine crawlers (user agents containing bot, crawl, slurp or spider) skip the age gate so the page can be indexed. They do not skip the password.

When both password and age gate are on, the visitor has to pass both in the same form.

[Demo](https://staging.visualportfolio.com/age-gate-protection/)

![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.32.10-1024x583.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.32.10-1024x583.png)    ## Right Click Protection

SettingDefault**Right Click Protection**offWhen on, in the gallery and in the open lightbox:

- the right-click context menu is blocked on images and on links that point to image files;
- dragging an image out of the page is blocked;
- Alt-click, Shift-click and Cmd-click on those links are blocked, so “download linked file” shortcuts do nothing.

It does not stop screenshots, the browser’s developer tools, or typing the image URL. The panel says so: “Please be aware that this is not an effective way to protect your photos.” Treat it as a deterrent for casual visitors.

[Demo](https://staging.visualportfolio.com/right-click-protection/)

![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.33.15-1024x583.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-21.33.15-1024x583.png)