Skip to content
Start here

Scripts

List Page Shield scripts
client.PageShield.Scripts.List(ctx, params) (*SinglePage[Script], error)
GET/zones/{zone_id}/page_shield/scripts
Get a Page Shield script
client.PageShield.Scripts.Get(ctx, scriptID, query) (*ScriptGetResponse, error)
GET/zones/{zone_id}/page_shield/scripts/{script_id}
ModelsExpand Collapse
type Script struct{…}
ID string

Identifier

maxLength32
AddedAt Time
formatdate-time
FirstSeenAt Time
formatdate-time
Host string
LastSeenAt Time
formatdate-time
URL string
URLContainsCDNCGIPath bool
CryptominingScore int64optional

The cryptomining score of the JavaScript content.

maximum99
minimum1
DeprecatedDataflowScore int64optional

The dataflow score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1
DomainReportedMalicious booloptional
FetchedAt stringoptional

The timestamp of when the script was last fetched.

FirstPageURL stringoptional
Hash stringoptional

The computed hash of the analyzed script.

maxLength64
minLength64
JSIntegrityScore int64optional

The integrity score of the JavaScript content.

maximum99
minimum1
MagecartScore int64optional

The magecart score of the JavaScript content.

maximum99
minimum1
MaliciousDomainCategories []stringoptional
MaliciousURLCategories []stringoptional
MalwareScore int64optional

The malware score of the JavaScript content.

maximum99
minimum1
DeprecatedObfuscationScore int64optional

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1
PageURLs []stringoptional
URLReportedMalicious booloptional