@@ -71,12 +71,12 @@ The malicious script classification (`Malicious` or `Not malicious`) is not dire
7171
7272This example obtains the current settings of Page Shield, including the status (enabled/disabled).
7373
74- ``` bash title="Request"
74+ ``` bash
7575curl " https://api.cloudflare.com/client/v4/zones/{zone_id}/page_shield" \
7676--header " Authorization: Bearer <API_TOKEN>"
7777```
7878
79- ``` json title="Response"
79+ ``` json output
8080{
8181 "result" : {
8282 "enabled" : true ,
@@ -94,15 +94,15 @@ curl "https://api.cloudflare.com/client/v4/zones/{zone_id}/page_shield" \
9494
9595This example enables Page Shield in the specified zone.
9696
97- ``` bash title="Request"
97+ ``` bash
9898curl --request PUT \
9999" https://api.cloudflare.com/client/v4/zones/{zone_id}/page_shield" \
100100--header " Authorization: Bearer <API_TOKEN>" \
101101--header " Content-Type: application/json" \
102102--data ' { "enabled": true }'
103103```
104104
105- ``` json title="Response"
105+ ``` json output
106106{
107107 "result" : {
108108 "enabled" : true ,
@@ -120,12 +120,12 @@ This `GET` request fetches a list of scripts detected by Page Shield on hostname
120120
121121By default, the response will only include scripts with ` active ` status when you do not specify a ` status ` filter parameter in the URL query string.
122122
123- ``` bash title="Request"
123+ ``` bash
124124curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/scripts?hosts=example.net&page=1&per_page=15" \
125125--header " Authorization: Bearer <API_TOKEN>"
126126```
127127
128- ``` json title="Response"
128+ ``` json output
129129{
130130 "result" : [
131131 {
@@ -173,12 +173,12 @@ For details on the available filtering, paging, and sorting parameters, refer to
173173
174174This ` 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.
175175
176- ``` bash title="Request"
176+ ``` bash
177177curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/scripts?status=infrequent&hosts=example.net&page=1&per_page=15" \
178178--header " Authorization: Bearer <API_TOKEN>"
179179```
180180
181- ``` json title="Response"
181+ ``` json output
182182{
183183 "result" : [
184184 {
@@ -225,12 +225,12 @@ For details on the available filtering, paging, and sorting parameters, refer to
225225
226226This ` GET ` request obtains the details of a script detected by Page Shield with script ID ` 8337233faec2357ff84465a919534e4d ` .
227227
228- ``` bash title="Request"
228+ ``` bash
229229curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/scripts/8337233faec2357ff84465a919534e4d" \
230230--header " Authorization: Bearer <API_TOKEN>"
231231```
232232
233- ``` json title="Response"
233+ ``` json output
234234{
235235 "result" : {
236236 "id" : " 8337233faec2357ff84465a919534e4d" ,
@@ -285,12 +285,12 @@ This `GET` request fetches a list of connections detected by Page Shield, reques
285285
286286By default, the response will only include connections with ` active ` status when you do not specify a ` status ` filter parameter in the URL query string.
287287
288- ``` bash title="Request"
288+ ``` bash
289289curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/connections?page=1&per_page=15" \
290290--header " Authorization: Bearer <API_TOKEN>"
291291```
292292
293- ``` json title="Response"
293+ ``` json output
294294{
295295 "result" : [
296296 {
@@ -329,12 +329,12 @@ For details on the available filtering, paging, and sorting parameters, refer to
329329
330330This ` GET ` request obtains the details of a connection detected by Page Shield with connection ID ` 0a7bb628776f4e50a50d8594c4a01740 ` .
331331
332- ``` bash title="Request"
332+ ``` bash
333333curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/connections/0a7bb628776f4e50a50d8594c4a01740" \
334334--header " Authorization: Bearer <API_TOKEN>"
335335```
336336
337- ``` json title="Response"
337+ ``` json output
338338{
339339 "result" : {
340340 "id" : " 0a7bb628776f4e50a50d8594c4a01740" ,
@@ -363,12 +363,12 @@ This `GET` request fetches a list of cookies detected by Page Shield, requesting
363363
364364By default, the response will only include cookies with ` active ` status when you do not specify a ` status ` filter parameter in the URL query string.
365365
366- ``` bash title="Request"
366+ ``` bash
367367curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/cookies?page=1&per_page=15" \
368368--header " Authorization: Bearer <API_TOKEN>"
369369```
370370
371- ``` json title="Response"
371+ ``` json output
372372{
373373 "result" : [
374374 {
@@ -409,12 +409,12 @@ For details on the available filtering, paging, and sorting parameters, refer to
409409
410410This ` GET ` request obtains the details of a cookie detected by Page Shield with ID ` beee03ada7e047e79f076785d8cd8b8e ` .
411411
412- ``` bash title="Request"
412+ ``` bash
413413curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/cookies/beee03ada7e047e79f076785d8cd8b8e" \
414414--header " Authorization: Bearer <API_TOKEN>"
415415```
416416
417- ``` json title="Response"
417+ ``` json output
418418{
419419 "result" : {
420420 "id" : " beee03ada7e047e79f076785d8cd8b8e" ,
@@ -457,7 +457,7 @@ For more information on <GlossaryTooltip term="content security policy (CSP)">Co
457457For a list of CSP directives and keywords supported by Page Shield policies, refer to [ CSP directives supported by policies] ( /page-shield/policies/csp-directives/ ) .
458458:::
459459
460- ``` bash title="Request"
460+ ``` bash
461461curl " https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/policies" \
462462--header " Authorization: Bearer <API_TOKEN>" \
463463--header " Content-Type: application/json" \
@@ -470,7 +470,7 @@ curl "https://api.cloudflare.com/api/v4/zones/{zone_id}/page_shield/policies" \
470470}'
471471```
472472
473- ``` json title="Response"
473+ ``` json output
474474{
475475 "success" : true ,
476476 "errors" : [],
0 commit comments