Home
/
Platform
/
Block rules

Block rules: stop scripts by URL, host, domain or vendor

Monitoring that can only describe a problem leaves you filing a ticket while the script keeps running. Blocks are enforced at runtime in the browser, alongside your CSP.
The Blocks page: active block rules by URL, hostname and domain, their status and the domains they apply to

What are block rules?

Block rules stop scripts from loading, enforced at runtime in the visitor's browser. It matters for compliance as well as security: some assessors treat a control that can only observe as weaker than one that can also act, which is worth confirming with yours before choosing a tool. It works alongside a Content Security Policy rather than replacing it, because a CSP governs origins and this governs specific scripts, hosts and vendors.

What a block can match

By domain stops that domain and its subdomains. By URL stops one file. By host stops everything served from that host. By vendor stops every resource the vendor serves: scripts, images, fonts, frames and any other request.

Block from an alert, a vendor or by hand

Most blocks start from an alert. Blocking there stops only the scripts flagged in that decision, and the vendor's other scripts keep loading. Blocking a vendor stops every resource it serves, and a block added by hand stops exactly the URL, host or domain you enter. All three apply to every domain in your team.
Block a script: the script URL or pattern, an optional reason, and Add block rule
Vendor guardrails for Chatly: follow the default policy or set its own rules, quick limits such as Can't read card details, what it was seen doing on your pages, and what it was not seen doing

Vendor guardrails, for the vendor you cannot remove

Sometimes the business genuinely needs a tag on the checkout and that tag has no business touching the card field. On Pro, vendor guardrails let you allow a vendor's scripts but limit what they can do, such as reading card fields. That is a smaller, more defensible action than removing the vendor, and it is usually the one that survives the conversation with marketing. Vendor guardrails are on Pro and Enterprise.

Four decisions, in plain words

Every vendor and script ends up with one of these. Each does something different in the visitor's browser.
Allow

Let it run

Approves the vendor and records what it was seen doing. It turns Approved once it has no open alerts.

Limit · Pro

Let it run, but not everything

Allows the vendor but stops what it should not do, such as reading card fields. Enforced in the visitor's browser.

Block

Stop it

Stops the script, host, domain or every resource a vendor serves, on all of the team's domains, at runtime in the browser.

Monitor only

Watch before you enforce

Runs every rule and records what would have been blocked, and on which pages, without stopping anything.

Blocks match a script URL, a host or a domain, and blocking a vendor stops everything it serves, on every domain in your team.
Blocking is on every plan, including the free one, except vendor guardrails, which are on Pro.
Start for free
See pricing

Frequently asked questions

Read the FAQ
Yes, it can if you block something load-bearing, which is why monitor-only mode exists. It reports exactly what would have been blocked and on which pages, so you can see the consequence before anything stops.
Quickly: blocks apply to sessions from the point the rule is live rather than requiring a deployment on your side, because enforcement happens in the tag rather than in your codebase.
No, and it should not. A CSP is a browser-enforced origin allowlist and is worth running regardless. These operate at different levels: the policy decides where scripts may come from, blocking rules decide which specific scripts, hosts and vendors are stopped.
No. A request you blocked is never counted as a page view, so enforcing more does not cost more.
Remove it from your code or tag manager if you can. If you cannot, or need to act now, block it at runtime. In Script Monitoring a block rule matches an exact script URL, a whole host or a domain, applies to every domain in your team, and usually takes effect within a minute with no deploy. Blocking a vendor stops every resource it serves. See Blocks in the docs.
Something stopped a script before it ran. The usual causes are a Content Security Policy that does not allow its source, an ad or tracker blocker in the visitor's browser, mixed content (an http script on an https page), or a runtime block rule. The console message normally names which one. A script blocked by a visitor's extension is outside your control, so do not rely on it for security.
Yes. In Script Monitoring you block a script by URL, host, domain or vendor from the dashboard, and the rule reaches the tag on every page of the team's domains within a minute, with no code change or deploy. The tag loads first in the head and makes a matching script inert before the browser can run it, so the blocked code never executes. Block rules are on every plan, including Free, and monitor-only mode lets you see what a rule would stop before you enforce it.

Watch the short answer

How Do You Block Scripts From Reading Card Fields?

Any script on a payment page can read any input on it, and the browser has no way to say that one script may touch the card field and another may not. This video shows the three levers that close that gap at runtime: card entry in your provider's iframe, vendor guardrails that allow a tag but stop it reading card details, and block rules by URL, host, domain or vendor, with monitor-only mode so you can see what would be blocked before anything stops.

Read the transcript

To block malicious scripts from reading card fields, keep card entry in your provider's iframe, limit what each vendor may do, and block the scripts you don't trust, in the browser. A CSP helps, but can't see an allowed script reading the field. Script Monitoring is one tag that watches every script on your payment pages, in every session, and shows what needs you today. Why is this possible? JavaScript on a page can read every input on that page. The browser has no idea that one script may touch the card field and another may not. Your analytics vendor's vendor can read it as easily as you can. A payment iframe helps, because browsers stop your page's scripts reading inside a cross-origin frame. But the page around it is yours. A script there can draw a fake form over the iframe, or capture keystrokes before the iframe gets them. Formjacking comes in two forms. A script listens to your real card inputs, or it swaps your form for an identical one it controls and passes the data through, so the purchase still completes. Both are spotted by watching which script reads the fields. Keep your Content Security Policy. It decides where scripts may come from, but it can't tell you an allowed script is reading the card field. Block rules and limits decide which scripts are stopped, and what an allowed vendor may do. On Pro, vendor guardrails limit a tag you need. Kitebird, a marketing script, gets Can't read card details, enforced in the browser. Block a script you don't trust by URL, host or domain, on every page, with no deploy. Or start in monitor-only: see what would be blocked, and nothing stops until you say so. Block rules and monitor-only mode are on every plan, Free too, at 1,000 page views a month. Vendor guardrails are on Pro, from $99 a month, with a 14-day trial. Start for free at scriptmonitoring.com.

Video page with transcriptWatch on YouTube

See it on your own payment pages.

Install the tag, mark your payment pages, and watch the inventory fill in. Free forever on 1,000 page views a month, no credit card.

Free forever plan. No credit card.