Skip to content

Commit 8dd8342

Browse files
authored
[DLP] Update file type section (cloudflare#25246)
1 parent 04a1316 commit 8dd8342

File tree

1 file changed

+29
-17
lines changed
  • src/content/docs/cloudflare-one/policies/gateway/http-policies

1 file changed

+29
-17
lines changed

src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -501,14 +501,24 @@ Use these selectors to limit the file size of upload or download transactions. F
501501
### Download and Upload File Types
502502

503503
:::caution[Deprecated selectors]
504-
The **Download File Types** and **Upload File Types** selectors supersede the **Download File Type** and **Upload File Type** selectors. Gateway will still evaluate policies with the previous selectors. However, Cloudflare recommends migrating any policies with deprecated selectors to the new corresponding selectors.
504+
The _Download File Types_ and _Upload File Types_ selectors supersede the _Download File Type_ and _Upload File Type_ selectors. Gateway will still evaluate policies with the previous selectors. However, Cloudflare recommends migrating any policies with deprecated selectors to the new corresponding selectors.
505505
:::
506506

507-
These selectors will scan file signatures in the HTTP body. You can select from file categories or specific file types, such as executables, archives and compressed files, unscannable files, Microsoft 365/Office documents, and Adobe files:
507+
These selectors will scan file signatures in the HTTP body. You can select from file categories or [specific file types](#supported-file-types), such as executables, archives and compressed files, unscannable files, Microsoft 365/Office documents, and Adobe files.
508508

509-
<Details header="Supported file types">
509+
| UI name | API example |
510+
| ------------------- | --------------------------------------------------- |
511+
| Download File Types | `any(http.download.file.types[*] in {"docx" "7z"})` |
512+
513+
| UI name | API example |
514+
| ----------------- | -------------------------------------------------- |
515+
| Upload File Types | `any(http.upload.file.types[*] in {"compressed"})` |
510516

511-
**Compressed**
517+
#### Supported file types
518+
519+
Gateway supports the following file types for use with the _Download File Types_ and _Upload File Types_ selectors:
520+
521+
<Details header="Compressed">
512522

513523
- 7-Zip archive (`.7z`)
514524
- `bzip2` archive (`.bz2`)
@@ -519,15 +529,19 @@ These selectors will scan file signatures in the HTTP body. You can select from
519529
- `xz` archive (`.xz`)
520530
- ZIP archive (`.zip`)
521531

522-
**Documents**
532+
</Details>
533+
534+
<Details header="Documents">
523535

524536
- Microsoft Office/365 files
525537
- Word document (`.doc`, `.docx`, `.docm`)
526538
- Excel spreadsheet (`.xls`, `.xlsx`, `.xlsm`)
527539
- PowerPoint presentation (`.ppt`, `.pptx`, `.pptm`)
528540
- PDF document (`.pdf`)
529541

530-
**Executable**
542+
</Details>
543+
544+
<Details header="Executable">
531545

532546
- Dynamic-link library (DLL) file (`.dll`)
533547
- Executable and Linkable Format (ELF) file (`.elf`)
@@ -537,7 +551,9 @@ These selectors will scan file signatures in the HTTP body. You can select from
537551
- Microsoft Windows installer (`.msi`)
538552
- Microsoft Windows executable (`.exe`)
539553

540-
**Image**
554+
</Details>
555+
556+
<Details header="Image">
541557

542558
- Adobe Photoshop document (`.psd`)
543559
- Bitmap image (`.bmp`)
@@ -547,24 +563,20 @@ These selectors will scan file signatures in the HTTP body. You can select from
547563
- PNG image (`.png`)
548564
- WebP image (`.webp`)
549565

550-
**Other**
566+
</Details>
567+
568+
<Details header="Other">
551569

552570
- BitTorrent file (`.torrent`)
553571

554-
**Unscannable**
572+
</Details>
573+
574+
<Details header="Unscannable">
555575

556576
<Render file="gateway/policies/unscannable-files" product="cloudflare-one" />
557577

558578
</Details>
559579

560-
| UI name | API example |
561-
| ------------------- | --------------------------------------------------- |
562-
| Download File Types | `any(http.download.file.types[*] in {"docx" "7z"})` |
563-
564-
| UI name | API example |
565-
| ----------------- | -------------------------------------------------- |
566-
| Upload File Types | `any(http.upload.file.types[*] in {"compressed"})` |
567-
568580
### Download and Upload Mime Type
569581

570582
These selectors depend on the `Content-Type` header being present in the request (for uploads) or response (for downloads).

0 commit comments

Comments
 (0)