Usage
Open Administration > Checkout script guard. The tiles show scripts waiting for review, authorised, blocked and open alerts.
1. First review (learning)
Section titled “1. First review (learning)”After the install the add-on collects scripts from three sources: the browser monitor (real shoppers), CSP reports of browsers and the scheduled check. Until you authorise the first script it only collects; no alerts are raised.
-
Open the Script inventory tab. Each row shows the script, its type (external, same site, inline), the pages, how often it ran and its integrity value.
-
Open a script, check where it comes from and write why the payment page needs it. For well-known services (payment SDKs, reCAPTCHA, Turnstile, Google Tag Manager, Meta Pixel and others) a suggested text is filled in when the address matches the provider exactly (host name and path; look-alike addresses such as a provider name followed by another domain are never recognised); change it to match your store. Addresses that visitors’ browsers reported are not verified: check the host before you authorise.
“Policy allows” decides what the policy lets through: Only this file (default), the catalogue path for providers that share a host (reCAPTCHA is limited to /recaptcha/), or Every file of this host for a recognised provider host. For public CDNs (jsDelivr, unpkg, cdnjs and similar) the whole host is refused, because anybody can publish files there: only the exact, version-pinned file is allowed.
-
Press Authorise, or select several rows, write one justification and press Authorise selected. A justification is required.
-
Press Block for a script you do not recognise, then find out where it comes from (theme, add-on, tag manager, a changed file) and remove it.
From the first authorised script on, every new script raises an alert.
Inline scripts have no address. The add-on records a fingerprint of their code with all text values and numbers removed, so a value that differs per shopper (a token, a price, a name) does not create a new entry, while added code or changed code structure does. Limit: a changed address or text INSIDE an approved inline script (a different URL in a string, another message) is not detected, because values are removed on purpose. If an inline script builds a script address from a value, keep that script out of your checkout or move it into a file: files are hashed byte for byte by the scheduled check. The inventory shows the start of that value-free code so you can recognise it.
Your own theme files come from CS-Cart’s combined script file, whose name changes when the cache is rebuilt; the add-on treats it as one entry. When its content changes (after an upgrade or a new add-on) you get a “Content changed” alert: check what changed and press Accept the new content.
2. Integrity values
Section titled “2. Integrity values”For files on a fixed address the scheduled check downloads the file and shows its integrity value, for example integrity="sha384-..." crossorigin="anonymous". If you add such a file to a template yourself, put that attribute on the tag; the browser then refuses a changed file. The add-on’s own monitor script is always loaded with its integrity value.
Files that the provider updates behind the same address (payment SDKs such as Stripe.js or the PayPal SDK, tag managers) cannot be pinned: a fixed value would break them on the next provider update. They are marked “Provider file changes” and covered by the policy allow-list and the monitoring instead. This is the usual approach for such files; describe it in your justification.
3. Alerts
Section titled “3. Alerts”| Alert | What happened | What to do |
|---|---|---|
| New script | A script that is not authorised ran on a payment page | Authorise it with a reason if you added it; block it and investigate if not |
| Blocked script loads | A script you blocked still runs | Remove it where it is added |
| Content changed | The file behind an authorised address has new content | Check the change, then accept the new content |
| Script gone | An authorised script was not found on the page | If you removed it, accept the current state as the baseline |
| Headers changed | A security header of the page changed (CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy, HSTS, X-Content-Type-Options, COOP) | If the change is yours, accept the current state as the baseline |
| Check failed | The scheduled check could not open the page | Check that the storefront is reachable from the server |
| Blocked by policy | The enforced policy stopped a script | Authorise it if it is needed |
A repeated sighting does not create a second alert; the open alert counts up. Alerts show in the admin panel (and as a notice on other admin pages), optionally by e-mail and webhook. E-mail and webhook are sent from the cron job as ONE digest per storefront at most every 15 minutes (never while a visitor request is running), so keep the hourly cron job from the Pages and headers tab. Mark alerts resolved when done.
Reports from visitor browsers are limited: at most 300 unknown scripts from the browser monitor and 100 from CSP reports are kept pending per storefront, and visitor reports open at most 40 “New script” alerts at a time; beyond that one “Too many unknown scripts reported” alert tells you. The scheduled check has no such limit: a script it finds on the real page is always recorded and alerted. Old, once-seen report entries make room for new ones.
4. Pages, headers and the baseline
Section titled “4. Pages, headers and the baseline”The Pages and headers tab lists each page in scope with its security headers as the server sends them. After your first review press Run the check now, look at the result and press Accept current state as baseline. From then on each check compares headers and scripts with that baseline. Pages that need a signed-in customer or an order (such as the repay form) cannot be opened by the check; their scripts are still reported by the browser monitor.
5. Dry run and enforcing (optional)
Section titled “5. Dry run and enforcing (optional)”The allow list is per storefront, not per page: the policy sent with every payment page of a storefront contains all authorised scripts of that storefront. Enforcing the policy makes browsers block scripts from addresses that are not authorised for the storefront; it is the strongest protection against a skimming script loaded from a foreign host.
- Press Start 7-day dry run. The policy still only reports; the banner counts the scripts that would be blocked.
- Authorise or remove what the dry run finds.
- After 7 days press Enforce the policy.
- If anything on checkout misbehaves, press Back to report only; it takes effect on the next page view.
The policy only covers scripts. Inline code keeps running (CS-Cart and many add-ons need it) and stays monitored. CS-Cart’s own security header (frame-ancestors) is kept.
6. Evidence report
Section titled “6. Evidence report”The Evidence report tab opens a printable report for the period you choose (save it as PDF from the print dialog) or downloads the inventory as CSV. It contains the inventory with status, justification, integrity value, who decided and when; the security headers of each page; the scheduled checks; the alerts; and the change log. A SHA-256 fingerprint at the end lets you match a copy with the store.
The report helps you collect the evidence for PCI DSS requirements 6.4.3 and 11.6.1. It does not make a store compliant on its own; ask your acquirer, payment provider or assessor which requirements and which self-assessment questionnaire apply to you.