You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only available to Enterprise customers with a paid add-on.
16
14
:::
17
15
18
-
Shortly after you configure Page Shield policies, the Cloudflare dashboard will start displaying any violations of those policies. This information will be available for policies with any [action](/page-shield/policies/#policy-actions) (*Allow* and *Log*).
16
+
Shortly after you configure Page Shield policies, the Cloudflare dashboard will start displaying any violations of those policies. This information will be available for policies with any [action](/page-shield/policies/#policy-actions) (_Allow_ and _Log_).
19
17
20
18
Information about policy violations is also available via [GraphQL API](/analytics/graphql-api/) and [Logpush](/logs/about/).
21
19
22
20
## Review policy violations in the dashboard
23
21
24
22
The policy violation information is available in **Security** > **Page Shield** > **Policies**. It includes the following:
25
23
26
-
* A sparkline next to the policy name, showing policy violations in the past seven days.
27
-
* For policies with associated violations, an expandable details section for each policy, with the top resources present in policy violation events and a sparkline per top resource.
24
+
- A sparkline next to the policy name, showing policy violations in the past seven days.
25
+
- For policies with associated violations, an expandable details section for each policy, with the top resources present in policy violation events and a sparkline per top resource.
28
26
29
27
## Get policy violations via GraphQL API
30
28
31
29
Use the [Cloudflare GraphQL API](/analytics/graphql-api/) to obtain policy violation information through the following dataset:
32
30
33
-
*`pageShieldReportsAdaptiveGroups`
31
+
-`pageShieldReportsAdaptiveGroups`
34
32
35
33
You can query the dataset for policy violations occurred in the past 30 days.
36
34
@@ -41,36 +39,43 @@ For an introduction to GraphQL querying, refer to [Querying basics](/analytics/g
You can enable and disable Page Shield, configure its settings, and fetch information about detected scripts and connections using the [Page Shield API](/api/resources/page_shield/methods/get/).
11
11
@@ -71,10 +71,7 @@ The malicious script classification (`Malicious` or `Not malicious`) is not dire
71
71
72
72
This example obtains the current settings of Page Shield, including the status (enabled/disabled).
@@ -173,10 +173,16 @@ For details on the available filtering, paging, and sorting parameters, refer to
173
173
174
174
This `GET` request fetches a list of infrequently reported scripts on hostname `example.net`, requesting the first page with 15 items per page. The URL query string includes filtering and paging parameters.
@@ -285,10 +294,14 @@ This `GET` request fetches a list of connections detected by Page Shield, reques
285
294
286
295
By default, the response will only include connections with `active` status when you do not specify a `status` filter parameter in the URL query string.
@@ -453,22 +476,21 @@ All other scripts would trigger a policy violation, but those scripts would not
453
476
For more information on <GlossaryTooltipterm="content security policy (CSP)">Content Security Policy (CSP)</GlossaryTooltip> directives and values, refer to the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy).
454
477
455
478
:::note
456
-
457
479
For a list of CSP directives and keywords supported by Page Shield policies, refer to [CSP directives supported by policies](/page-shield/policies/csp-directives/).
0 commit comments