跳转到主要内容

Review changed scripts

import { Steps, DashButton } from "~/components";

:::note Only available to customers with Client-Side Security Advanced. :::

Cloudflare analyzes the JavaScript dependencies in the pages of your domain over time.

How changes are detected

Cloudflare parses each script into an abstract syntax tree (AST) and hashes its structure. A script is marked as changed when this structural hash changes.

The comparison does not use the raw file bytes. Changes that preserve the same AST structure, such as formatting changes or changing only numeric literal values, do not trigger a code change alert.

You can configure a notification for code change alerts to receive a daily notification about changed scripts in your domain.

When you receive such a notification:

1. In the Cloudflare dashboard, go to the **Web assets** page.
	<DashButton url="/?to=/:account/:zone/security/web-assets" />

2. Select the **Client-side resources** tab.
3. Check the details of each changed script and validate if it is an expected change.