On this page
What this issue is
PCI DSS is the card industry's security standard. Version 4.0 added requirement 11.6.1: a change and tamper detection mechanism that alerts personnel to unauthorized changes to the HTTP headers and the contents of payment pages as received by the consumer browser. It must evaluate the page at least once every seven days, or at a frequency set by your targeted risk analysis.
Why it costs you leads or sales
Without tamper detection, a malicious or broken script change can sit on your checkout for weeks. The effects are direct: stolen card data, chargebacks, forced investigations, fines or higher fees from your acquirer, and lost customer trust. Injected scripts can also slow the page or break the pay button, so orders drop before anyone notices.
Day 0
A compromised third-party script is changed to add a card-copying routine.
Day 1-20
Checkout looks and works normally. Nobody compares the page to a baseline.
Day 21
Your acquirer or a customer reports fraud linked to your site.
Day 22
Investigation starts, the script is removed, and customers are notified.
With detection
A weekly or daily comparison flags the new script within a day or so, and you remove it early.
- Customer opens checkoutPage loads scripts and headers
- Script is alteredNo baseline comparison, no alert
- Card details typedCopied by the injected code
- Order completesLooks normal to you
Without detection, the change is never noticed and every later step is exposed.
How to check if your site has it
Ask one question: if a script on your payment page changed tonight, who would be told, and how fast? If the answer is nobody, or only when someone happens to look, you have this gap.
- You know which pages load or host your payment form (checkout, cart, payment step).
- You have an approved list of scripts and their purpose for those pages.
- Something compares the live page, as a browser sees it, with that approved state at least every 7 days.
- It also compares security-relevant HTTP headers such as Content-Security-Policy.
- Alerts go to a named person or team, not an unread inbox.
- You have tested that a deliberate change triggers an alert.
- The process and its frequency are documented, with the reasoning if you use a risk analysis.
How to fix it
The approach is the same on every platform: define a baseline, compare the live page against it on a schedule, and alert a person. Options include a dedicated payment page security tool from a vendor, your payment provider's tooling if it offers one, or a scripted check you run yourself.
List your payment pages
Include every URL that shows or loads the payment form, including cart and multi-step checkout pages.
Build a script inventory and baseline
Record each script URL, who owns it, why it is needed and, where possible, a hash. This also supports requirement 6.4.3.
Choose a detection method
Pick a commercial payment page monitoring tool, or a scheduled script that fetches the page in a real browser, hashes the scripts and records key headers.
Set the schedule
Run at least every 7 days. Daily is a safer default for busy stores.
Route alerts to a person
Send alerts to a monitored channel with a named owner and a documented response procedure.
Tighten what can change
Add a Content-Security-Policy header, ideally in report-only mode first, and use Subresource Integrity on scripts you host or that are versioned.
Limit who can add code
Restrict admin accounts, enable two-factor sign-in and keep plugins updated. Review plugins that load scripts on checkout pages.
Set headers
Add a Content-Security-Policy header through your host, server config or a security plugin that supports headers.
Review apps and theme code
Check Online Store > Themes > Edit code, installed apps and the Customer events (pixels) area for scripts. Remove unused apps.
Know the limits
Shopify controls the hosted checkout, so you cannot edit its headers. Ask Shopify or your payment provider what applies to your setup, and monitor the pages you do control.
Lock down the container
Under Admin > User Management, give publish rights to few people. Review Custom HTML tags on payment pages.
Use approvals and version notes
Use workspace versions with notes so every published change is traceable, and include the container in your baseline.
Review custom code
Check Site settings > Custom code and page-level custom code for scripts on payment-related pages.
Control access
Limit Designer and Admin roles. Monitor the live page externally, since Webflow does not provide a page-change alert for you.
Audit funnel and site code
Check the custom code and tracking code sections of funnels and websites that include order forms.
Restrict user permissions
Give team members only the roles they need and monitor the live pages with an external tool.
Review custom code
Check Settings > Custom code and installed apps for scripts loading on checkout pages.
Confirm responsibilities
Wix hosts the checkout, so ask what Wix covers and monitor what you control.
Review code injection
Check Settings > Developer Tools > Code Injection and any extensions or page-level code blocks.
Confirm responsibilities
Squarespace hosts the checkout, so confirm with them and your payment provider what applies to you.
Add a CSP header
Send Content-Security-Policy-Report-Only first, review reports, then enforce it.
Run a scheduled comparison
Use a headless browser job (cron or CI) that loads the page, hashes the scripts and diffs them against the baseline.
import { chromium } from 'playwright';
import { createHash } from 'node:crypto';
import fs from 'node:fs';
const url = 'https://example.com/checkout';
const baselineFile = 'baseline.json';
const browser = await chromium.launch();
const page = await browser.newPage();
const scripts = {};
page.on('response', async (res) => {
const req = res.request();
if (req.resourceType() === 'script') {
try {
const body = await res.body();
scripts[req.url()] = createHash('sha256').update(body).digest('hex');
} catch {}
}
});
const main = await page.goto(url, { waitUntil: 'networkidle' });
const h = main.headers();
const current = {
scripts,
headers: { csp: h['content-security-policy'] || '', xfo: h['x-frame-options'] || '' }
};
await browser.close();
if (!fs.existsSync(baselineFile)) {
fs.writeFileSync(baselineFile, JSON.stringify(current, null, 2));
console.log('Baseline saved');
} else {
const base = JSON.parse(fs.readFileSync(baselineFile, 'utf8'));
if (JSON.stringify(base) !== JSON.stringify(current)) {
console.error('CHANGE DETECTED on', url);
process.exit(1); // wire this to your alerting
}
console.log('No change');
}How to confirm it's fixed
Make a harmless test change
On a staging copy or in a controlled window, add a benign script or change a header.
Wait for the next run
Or trigger the check manually.
Confirm the alert arrives
The right person should receive it with enough detail to see what changed.
Revert and record
Remove the test change, update the baseline if needed and keep the evidence for your assessor.
How to prevent it happening again
- Review the baseline whenever you add or remove a script, tag or app.
- Keep a named owner and a backup for alerts.
- Remove scripts you no longer need from payment pages.
- Re-test the alerting every quarter and after platform or hosting changes.
- Review third-party vendors that load code on checkout.
- Re-check your SAQ type and requirements with your acquirer each year.
How FunnelGuard handles this
FunnelGuard does not check this yet. It does not compare your payment page scripts or HTTP headers against a baseline, and it is not a PCI DSS tamper-detection tool. A page-change check is a possible future addition.
What FunnelGuard does do is run your real checkout journey on a schedule from the EU or the US, check each step and the tracking hits sent to platforms such as GA4, Google Ads and Meta, and send one alert with a screenshot and likely cause if something fails after a second-region re-check. That can surface symptoms of a broken or interfered checkout, such as a pay button that stops working or tags that stop firing, but it does not tell you a script was tampered with. It stops before payment unless your store's test mode is set up.
Frequently asked questions
Questions people ask
What is PCI DSS requirement 11.6.1?
It is a PCI DSS 4.0 requirement for a change and tamper detection mechanism on payment pages. It must alert personnel to unauthorized changes to HTTP headers and page contents as received by the consumer browser, and evaluate them at least every seven days or as set by your risk analysis.
Why do I need tamper detection if my server files are secure?
Skimming code often arrives through third-party scripts, tag managers or CDNs, so your server files can stay unchanged. Requirement 11.6.1 checks what the browser actually receives, which is where those changes show up.
How often must payment page tamper detection run?
At least once every seven days, or at a frequency defined in your targeted risk analysis. Many merchants choose daily checks because a skimmer can steal data for a week before a weekly check notices.
Does Content-Security-Policy satisfy 11.6.1?
Not by itself. A CSP limits which scripts can run, which helps, but 11.6.1 asks for detection and alerting of changes. Use a CSP as an extra layer alongside a baseline comparison and alerts.
Does 11.6.1 apply if I use Shopify, Wix or a hosted payment page?
It depends on your setup and SAQ type. With a fully redirected or platform-hosted checkout, much of the responsibility sits with the provider, but pages you control may still be in scope. Ask your acquirer or payment provider.
Can FunnelGuard detect tampering on my payment page?
No, not yet. FunnelGuard runs your checkout journey and checks steps and tracking hits, which can reveal a broken checkout, but it does not compare scripts or headers against a baseline. A page-change check is a possible future addition.
How do I check my payment page for changed scripts manually?
Open the page in your browser, use DevTools Network tab filtered to JS, and record each script URL. Compare the list with your approved inventory. For repeatable results, use a scheduled headless-browser script that hashes scripts and diffs them.
Related issues
- OPS-365PCI-DSS 4.0 script inventory missing on payment pages (6.4.3)Fix guide
- OPS-367Card data entered on own page instead of hosted fieldFix guide
- OPS-368Payment iframe served over insecure pageFix guide
- OPS-369Card numbers in logs or URLsFix guide
- OPS-370Strong Customer Authentication (3DS) failingFix guide