Landing Page Protection Script

How to use ClickFlare's landing page protection script to prevent competitors from spying on your pages.
SB
Written by Sara Bregasi
Updated 3 weeks ago

In most cases, your landing page is accessible to anyone who has the link. This makes it easier for your competitors to access your pages and replicate your content using ad spy tools or public libraries. To safeguard your best-performing landing pages, ClickFlare provides the Landing Page Protection Script. This feature restricts access to your page for visitors or tools that didn't come through the campaign URL. 

Note: In order to use this function, you need to create a Lander element on ClickFlare. Your campaign path destination needs to be set to Landers & Offers. Read more about how to add a landing page on ClickFlare

How It Works 

The landing page protection script ensures security by verifying the presence of the lptoken parameter in the campaign URL, which is then passed to the lander element. If this token is missing or has expired, access to the site will be restricted. Tokens are valid for 30 minutes, meaning that even if the campaign URL is intercepted, unauthorized users can only view the landing page for a limited duration.

Versions of Landing Page Protection Scripts 

  • PHP (recommended): This script is recommended because it restricts all access to your page, effectively protecting you from spy tools. In order to use this version, your landing page must be hosted on a server that supports PHP.
  • JavaScript: While this script can protect you from competitors directly spying on your landing page, it cannot protect you against spy tools like AdPlexity. 

How to Set Up the Landing Page Protection Script 

  1. Go to Settings at the top right of your ClickFlare account. 
  2. Click on Landing Page Protection. 
  3. Choose between the PHP and JavaScript version (as explained above). 
  4. Copy the generated script. 
  5. Paste the script. Depending on which script version you chose, follow these instructions: 
  • PHP: Paste the generated script into the <body> of your landing page. 

  • JavaScript: Paste the generated script right after the <head> tag in your lander's HTML file. 

Did this answer your question?