Initialize the Page Shield resource
Settings management
Get settings
Retrieve the current Page Shield settings for a zone.Update settings
Update Page Shield settings for a zone.Zone identifier
Enable or disable Page Shield
When true, CSP reports will be sent to https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report
When true, the paths associated with connection URLs will also be analyzed
Scripts
Monitor and analyze JavaScript files loaded on your website.List scripts
List all scripts detected by Page Shield.Direction to order scripts. Options:
asc, descExclude scripts from cdn-cgi path
Exclude duplicate scripts
Comma-separated list of URL patterns to exclude
Export format. Options:
csvComma-separated list of hosts to filter by
Field to order by. Options:
first_seen_at, last_seen_atPage number
Filter by page URL where script was loaded
Number of items per page
Prioritize malicious scripts in results
Filter by script status. Options:
active, inactive, allComma-separated list of script URLs to filter by
Get script
Retrieve detailed information about a specific script.Connections
Monitor outbound connections made by scripts on your website.List connections
List all connections detected by Page Shield.Get connection
Retrieve detailed information about a specific connection.Cookies
Monitor cookies set by scripts on your website.List cookies
List all cookies detected by Page Shield.Get cookie
Retrieve detailed information about a specific cookie.Policies
Manage Content Security Policy (CSP) configurations for Page Shield.Create policy
Create a new Page Shield policy.Update policy
Update an existing Page Shield policy.List policies
List all Page Shield policies for a zone.Get policy
Retrieve a specific Page Shield policy.Delete policy
Delete a Page Shield policy.Response types
Script
Represents a JavaScript file detected on your website.Script identifier
Script URL
Hostname where the script is hosted
When the script was added to Page Shield
When the script was first detected
When the script was last seen
Whether the URL contains cdn-cgi path
The computed hash of the analyzed script
The dataflow score of the JavaScript content (0-100)
The cryptomining score of the JavaScript content (0-100)
The integrity score of the JavaScript content (0-100)
Whether the domain is reported as malicious
The timestamp of when the script was last fetched
The first page URL where the script was detected
Connection
Represents an outbound connection made by scripts.Connection identifier
Connection URL
Hostname of the connection
When the connection was added to Page Shield
When the connection was first detected
When the connection was last seen
Setting
Page Shield configuration settings.Whether Page Shield is enabled
When Page Shield was last updated
Whether to use Cloudflare’s CSP reporting endpoint
Whether to analyze connection URL paths