---
title: "How to Remove Hidden Scripts from a Landing Page You Copied (LanderLab MCP)"
date: 2026-08-07T13:12:16.000Z
modified: 2026-08-07T14:32:48.000Z
author: Olgert Pysqyli
categories: [AI, Guides]
canonical: https://landerlab.io/blog/clean-a-copied-landing-page
image: https://landerlab.io/blog/wp-content/uploads/2026/08/remove-hidden-scrips.png
description: "Before you clean a copied landing page, open the one you found on your spy tool and look at the first ten lines of code. There is a good chance you will find a file you did not expect. Something with "
---

# How to Remove Hidden Scripts from a Landing Page You Copied (LanderLab MCP)

Before you clean a copied landing page, open the one you found on your spy tool and look at the first ten lines of code.

There is a good chance you will find a file you did not expect. Something with a harmless name. `analytics.min.js`, `main.js`, `stats.js`. It loads before anything else on the page.

Sometimes it is exactly what it says it is. Sometimes it is the reason your clone of a proven page somehow converts worse than the original.

This article is about that script, and about the fastest way we have found to get rid of it: connecting LanderLab to Claude through an MCP and letting the AI do the cleaning while you do something more useful.

Key takeaways

- Landing page protection scripts are a normal part of this industry. Assume every copied landing page has one until you prove otherwise.

- Cleaning a copied landing page by hand takes twenty to forty minutes and requires you to read JavaScript.

- With the LanderLab MCP, one prompt imports the page, strips the scripts, publishes it on your domain and returns the link.

- The same prompt handles a list of pages, which is the difference between testing two landers and testing ten.

## Why Copied Landing Pages Have Hidden Scripts

Look at it from the other side. Someone spends two weeks and real money [building a page that converts](https://landerlab.io/blog/best-landing-page-examples). A month later it is on every spy tool and fifty affiliates are running their work. There is no way to stop the copying.

So they stop trying to stop it and put something inside the page instead. That is the reason you have to clean a copied landing page before you send it traffic.

The usual version is a small script that checks which domain the page is loading on. On the owner’s domain, nothing happens. Anywhere else, it starts sending a share of that traffic back to the original page or through the original owner’s link. The person who copied the page sees weak numbers, blames the offer and kills the campaign.

Not every script on a copied landing page is there for that. Plenty are an analytics tag someone forgot to remove. The problem is that the file name tells you nothing.

## Three Ways to Copy a Landing Page, Compared

 LanderLab MCP with Claude
 LanderLab URL importer
 Manual download and clean

 Time per page
 Under 2 minutes
 2 to 3 minutes
 20 to 40 minutes

 Coding knowledge needed
 No
 No
 Yes, you read the JS yourself

 Scripts removed
 Handled and reported back
 You do this part
 Only what you catch

 Outgoing links swapped
 Ask in the same prompt
 Mass replace tool
 Manual, one by one

 Publishing to a domain
 Ask in the same prompt
 Built in
 Upload and configure

 Ten pages at once
 One prompt
 Ten separate imports
 A full day

 You still need to verify
 Yes
 Yes
 Yes

## How to Clean a Copied Landing Page, Step by Step

The example below uses one page. The same six steps work when you clean a copied landing page in bulk, which is covered further down.

### Step 1. Pick the page and copy its URL

Open your spy tool, find an ad that has been running long enough to be worth copying, and open its landing page in a new tab. Copy the URL from the address bar.

For our test we took a single ad from AdPlexity. Nothing famous, on purpose, since the point was the workflow and not exposing anyone’s campaign. AdPlexity is only what we happened to use. Anstrex or any other spy tool works the same way here, because all the next step needs is a public URL.

![](https://landerlab.io/blog/wp-content/uploads/2026/08/ChatGPT-Image-Aug-7-2026-02_16_43-PM-1024x462.png)

### Step 2. Look at the source code before you import

Right click the page, choose View Page Source, and read the first ten to twenty lines.

You are looking for external files loading at the top of the document. In our test page there was one: a small JavaScript file sitting above everything else. The page itself was simple, mostly plain HTML and CSS, which is the kind of page that copies cleanly.

![](https://landerlab.io/blog/wp-content/uploads/2026/08/ChatGPT-Image-Aug-7-2026-02_19_39-PM-1024x449.png)

### Step 3. Connect the LanderLab MCP to Claude

Add the [LanderLab connector inside Claude](https://www.youtube.com/watch?v=mMddiQZqAvY), sign in to your account, and approve the permissions. You do this once and it stays connected.

From that point Claude can see your landers, your domains and your workspace, and it can create and publish inside them.

### Step 4. Send one prompt

This is the prompt we used, close to word for word:

Prompt

Import this lander from AdPlexity to LanderLab and make sure to clean it from tracking scripts and malicious code. After it is imported, publish it on the [yourdomain] domain and give me the link.

Then paste the URL from step 1.

### Step 5. Read the report

The import takes a little while. When it finished, ours came back with four things:

- The page was created in LanderLab, with its variant ID

- The tracking script was found and removed

- The rest of the markup was judged legitimate, since the page was mostly plain HTML and CSS

- The cleaned version was published on the chosen domain, with the live URL returned

Read this properly instead of skipping to the link. If it reports one removed script and you saw three in step 2, ask again and name the files it missed.

### Step 6. Check the live page yourself

Open your freshly cleaned copied landing page next to the original. Ours matched: same layout, same copy, same images. The only difference was in the code.

Two checks, ten seconds each:

- View the source of your new page and search for <script . Read whatever comes up. Anything left should be a script you can explain, and it should not point to a domain that is not yours.

- Open the browser network tab and reload the page. Every file loading there should come from your own domain or from a service you added yourself.

If something is still loading, say so in the same conversation and ask for it to be removed. The page stays in your account and gets fixed in place.

![](https://landerlab.io/blog/wp-content/uploads/2026/08/ChatGPT-Image-Aug-7-2026-02_24_22-PM-1024x463.png)

Total time, from copying the URL to having a live page on our own domain: a couple of minutes, most of which was waiting.

## 4 Prompts for Cleaning and Publishing Landers

The workflow is only as good as what you ask for. These are the four prompts worth saving when you clean a copied landing page.

### 1. Single page, clean and publish

Prompt 1

Import this lander to LanderLab, clean it from tracking scripts, pixels and any redirect code, publish it on [yourdomain] and give me the live link. Tell me exactly what you removed.

The last sentence matters. Without it you get a shorter summary and less to verify against.

### 2. A batch

Prompt 2

Import these landers to LanderLab. For each one, remove tracking scripts, third party pixels and any code that changes the page location. Publish all of them on [yourdomain]. Return a table with the page name, the variant ID and the live URL. [paste your list of URLs]

This is where the time saving shows up.

### 3. Clean plus link swap

Prompt 3

Import this lander, clean it, then replace every outgoing link and CTA button with [your offer link]. Confirm how many links you changed before publishing.

Missing one button on a cloned page is one of the most common and most expensive mistakes in this job. Asking for a count is free.

### 4. An audit before you commit

Prompt 4

Fetch the HTML of this URL and list every external script, pixel and redirect you can find. Do not import anything yet. Tell me which ones look like tracking and which ones look like they could redirect traffic.

Use this when you are looking at a page you are not sure about. It costs nothing and it teaches you what tends to hide on pages in your vertical.

## Connecting the MCP to Your Tracker and Ad Account

Importing is the smallest thing you can do once the connection exists.

**Chain it to your tracker.** With the [ClickFlare](https://clickflare.com/) MCP connected, the same conversation can create the lander and offer in your tracker and hand you the click URL, so the page is ready for traffic the moment it goes live.

**Chain it to your ad account.** Meta opened its ad system to AI assistants in 2026. In theory, and increasingly in practice, you can go from a page you found on a spy tool to a live campaign without opening a dashboard once.

**Chain it to your own workflow.** Ask for five variants of the same page with different headlines, published on five URLs, ready for a split test. Building variants was always the bottleneck in testing, not the testing itself. Our guide to [landing page optimization practices](https://landerlab.io/blog/10-landing-page-optimization-practices-for-2024) assumes you can produce variants quickly, and now you can.

If you want a sense of where the limits are, TheOptimizer published a fair comparison of [what MCP does well and what it cannot do](https://theoptimizer.io/blog/meta-ads-mcp-vs-automation-tools-what-media-buyers-actually-need-in-2026). MCP responds when you ask, and that is not the same thing as automation that runs while you sleep.

## Check Which of Your Tools Have an MCP

We used a copied landing page here because it is a job every media buyer does and every media buyer half skips, but the pattern is bigger than that. Most of the tools in this industry are shipping MCP connections right now. Trackers, [page builders](https://landerlab.io/blog/best-landing-page-builders), spy tools, ad platforms. Every one you connect turns a repetitive twenty minute task into a sentence you type once.

So before your next manual chore, check whether the tool you are about to click through has an MCP. If it does, use it.

## FAQ

### What does it mean to clean a copied landing page?

Removing everything the original owner left inside the page that does not belong to you. That means third party analytics, pixels, chat widgets, and most importantly any JavaScript that can change where the page sends a visitor.

### How do I know if a landing page has a protection script?

View the source and look at the external files loading at the top of the page. Anything you cannot explain is a candidate. A quick check in the browser network tab shows every domain the page talks to, which is often faster than reading code.

### Can Claude catch every malicious script?

It catches the obvious ones and explains what it found, which is far more than most people do manually. It is not a security audit. For pages that look heavily obfuscated, treat the report as a first pass and check the code yourself.

### Is cloning landing pages allowed?

Modelling a page structure and angle is standard practice in performance marketing. Copying someone’s copyrighted images, brand assets or exact text is a different question, and one for your own legal judgement. Either way, the technical cleaning step applies.

### Do I need Claude specifically?

The MCP standard works across multiple AI clients. The workflow in this article was run in Claude, and that is where the connector setup is simplest today.

### How many landers can I do at once?

Practically, batches of five to ten work well in a single conversation. Larger lists are better split, mostly so the report stays readable and you can actually verify each page.

### What if the imported page looks broken?

Pages built on WordPress or a heavy CMS often do not import cleanly, which is a known limit of URL importing in general. Simple HTML and CSS pages are the ones that clone properly. If a page breaks, tell the AI which part is broken and it can fix the markup in place.

[Clean landers, live in minutes Clean a copied landing page in one prompt. Connect LanderLab to Claude, paste your URLs, and publish on your own domain without opening a code editor. Get Started for Free →](https://landerlab.io/)
