Page Shield
page_shield
Methods
Fetches the Page Shield settings.
Updates Page Shield settings.
Domain types
Connections
page_shield.connections
Methods
Fetches a connection detected by Page Shield by connection ID.
Lists all connections detected by Page Shield.
Domain types
Policies
page_shield.policies
Methods
Create a Page Shield policy.
Delete a Page Shield policy by ID.
Fetches a Page Shield policy by ID.
Lists all Page Shield policies.
Update a Page Shield policy by ID.
Domain types
Scripts
page_shield.scripts
Methods
Fetches a script detected by Page Shield by script ID.
Lists all scripts detected by Page Shield.
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example: X-Auth-Email: user@example.com
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Page Shield Domain Page Shield Read Domain Page Shield Page Shield Read Zone Settings Write Zone Settings Read
Identifier
The direction used to sort returned scripts.
When true, excludes scripts seen in a /cdn-cgi
path from the returned scripts. The default value is true.
When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
Export the list of scripts as a file.
Includes scripts that match one or more URL-encoded hostnames separated by commas.
Wildcards are supported at the start and end of each hostname to support starts with, ends with and contains. If no wildcards are used, results will be filtered by exact match
The field used to sort returned scripts.
The current page number of the paginated results.
We additionally support a special value "all". When "all" is used, the API will return all the scripts with the applied filters in a single page. This feature is best-effort and it may only work for zones with a low number of scripts
Includes scripts that match one or more page URLs (separated by commas) where they were last seen
Wildcards are supported at the start and end of each page URL to support starts with, ends with and contains. If no wildcards are used, results will be filtered by exact match
The number of results per page.
When true, malicious scripts appear first in the returned scripts.
Filters the returned scripts using a comma-separated list of scripts statuses. Accepted values: active
, infrequent
, and inactive
. The default value is active
.
Includes scripts whose URL contain one or more URL-encoded URLs separated by commas.
Whether the API call was successful
Domain types