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.string
required
Zone identifier
boolean
Enable or disable Page Shield
boolean
When true, CSP reports will be sent to https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report
boolean
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.string
Direction to order scripts. Options:
asc, descboolean
Exclude scripts from cdn-cgi path
boolean
Exclude duplicate scripts
string
Comma-separated list of URL patterns to exclude
string
Export format. Options:
csvstring
Comma-separated list of hosts to filter by
string
Field to order by. Options:
first_seen_at, last_seen_atstring
Page number
string
Filter by page URL where script was loaded
number
Number of items per page
boolean
Prioritize malicious scripts in results
string
Filter by script status. Options:
active, inactive, allstring
Comma-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.string
required
Script identifier
string
required
Script URL
string
required
Hostname where the script is hosted
string
required
When the script was added to Page Shield
string
required
When the script was first detected
string
required
When the script was last seen
boolean
required
Whether the URL contains cdn-cgi path
string
The computed hash of the analyzed script
number
The dataflow score of the JavaScript content (0-100)
number
The cryptomining score of the JavaScript content (0-100)
number
The integrity score of the JavaScript content (0-100)
boolean
Whether the domain is reported as malicious
string
The timestamp of when the script was last fetched
string
The first page URL where the script was detected
Connection
Represents an outbound connection made by scripts.string
required
Connection identifier
string
required
Connection URL
string
required
Hostname of the connection
string
required
When the connection was added to Page Shield
string
required
When the connection was first detected
string
required
When the connection was last seen
Setting
Page Shield configuration settings.boolean
required
Whether Page Shield is enabled
string
required
When Page Shield was last updated
boolean
required
Whether to use Cloudflare’s CSP reporting endpoint
boolean
required
Whether to analyze connection URL paths