Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ See full list of available filters and their descriptions below:

### API deletion

You can programmatically delete logs using the AI Gateway API. For more comprehensive information on the `DELETE` logs endpoint, check out the [Cloudflare API documentation](https://developers.cloudflare.com/api/resources/ai_gateway/subresources/logs/methods/delete/).
You can programmatically delete logs using the AI Gateway API. For more comprehensive information on the `DELETE` logs endpoint, check out the [Cloudflare API documentation](/api/resources/ai_gateway/subresources/logs/methods/delete/).
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ We employ a hybrid encryption model efficiency and security. Initially, an AES k

Now, for securely sharing this AES key, we use RSA encryption. Here's what happens: the AES key, although lightweight, needs to be transmitted securely to the recipient. We encrypt this key with the recipient's RSA public key. This step leverages RSA's strength in secure key distribution, ensuring that only someone with the corresponding RSA private key can decrypt and use the AES key.

Once encrypted, both the AES-encrypted data and the RSA-encrypted AES key are sent together. Upon arrival, the recipient's system uses the RSA private key to decrypt the AES key. With the AES key now accessible, it's straightforward to decrypt the main data payload.
Once encrypted, both the AES-encrypted data and the RSA-encrypted AES key are sent together. Upon arrival, the recipient's system uses the RSA private key to decrypt the AES key. With the AES key now accessible, it is straightforward to decrypt the main data payload.

This method combines the best of both worlds: the efficiency of AES for data encryption with the secure key exchange capabilities of RSA, ensuring data integrity, confidentiality, and performance are all optimally maintained throughout the data lifecycle.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Every subnode of `settings` node could consist of these fields:

* `enabled` - shows whether the node is available for a requester or not;
* `availableFields` - shows the list of fields available for a requester. If
it's a nested field, the path will be returned, like `sum_requests`;
it is a nested field, the path will be returned, like `sum_requests`;
* `maxPageSize` - retrieves the maximum number of records that can be returned
* `maxNumberOfFields` - answers on how many fields could be used in a single
query for that node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar:

## Do I still need to create "Edge Cache TTL" page rules with "Cache Level: Cache Everything"?

No, you don't need create Edge Cache TTL page rules. When the WordPress plugin is installed, APO automatically caches content for 30 days and invalidates on change within 30 seconds. However, because APO now supports cache-related page rules, make sure existing page rules don't affect the resources served by APO.
No, you do not need create Edge Cache TTL page rules. When the WordPress plugin is installed, APO automatically caches content for 30 days and invalidates on change within 30 seconds. However, because APO now supports cache-related page rules, make sure existing page rules do not affect the resources served by APO.

## Does Origin Cache Control override APO?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The WordPress plugin may go undetected on your Cloudflare dashboard for a few re
* WordPress only runs on a subdomain, but WordPress and the WordPress plugin check against the apex domain.
* **Solution:** For additional information, see [Subdomains and subdirectories](/automatic-platform-optimization/reference/subdomain-subdirectories/)

If your Cloudflare dashboard can't detect the WordPress plugin after trying the solutions above, ensure you completed all of the steps listed in [Activate the Cloudflare WordPress plugin](/automatic-platform-optimization/get-started/activate-cf-wp-plugin/).
If your Cloudflare dashboard cannot detect the WordPress plugin after trying the solutions above, ensure you completed all of the steps listed in [Activate the Cloudflare WordPress plugin](/automatic-platform-optimization/get-started/activate-cf-wp-plugin/).

:::note

Expand Down
5 changes: 3 additions & 2 deletions src/content/docs/bots/reference/sample-terms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ Cloudflare recommends that customers consider updating their Terms of Service to

> **Artificial Intelligence Restriction**
>
> You may not use automated bots to access, scan, scrape, data mine, copy, or use the materials or content on this website for developing, training, fine-tuning, or otherwise contributing to or improving a machine learning model or artificial intelligence (AI) system or the operation thereof, unless your bot's user agent is (I) explicitly permitted ("allowed") to do so in this website's `robots.txt` file and (II) solely used to identify bots used for AI purposes (i.e., this provision does not apply to user agents that are used for multiple purposes, such as search engine indexing and AI purposes).
> You may not use automated bots to access, scan, scrape, data mine, copy, or use the materials or content on this website for developing, training, fine-tuning, or otherwise contributing to or improving a machine learning model or artificial intelligence (AI) system or the operation thereof, unless your bot's user agent is (I) explicitly permitted ("allowed") to do so in this website's `robots.txt` file and (II) solely used to identify bots used for AI purposes (that is, this provision does not apply to user agents that are used for multiple purposes, such as search engine indexing and AI purposes).

:::caution[Disclaimer]

This language is provided for informational purposes only. It does not constitute legal advice, nor does it guarantee any specific outcome.

This is an illustrative example of language that can be included in a website's terms to put AI providers on notice that they are not authorized to use automated means to scrape content from your website for purposes of training or otherwise contributing to their AI models or systems, unless you have expressly permitted them to do so in your `robots.txt` file.
:::
:::

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Cloudflare uses multiple methods to detect bots, but these vary by plan. For mor

---

## How do I know what's included in my plan?
## How do I know what is included in my plan?

To know what's included in your plan, refer to our [Plans](/bots/plans).

Expand Down Expand Up @@ -75,7 +75,7 @@ Yes. WAF rules are executed before Super Bot Fight Mode. If a WAF custom rule pe

A request's _cf.bot_management.verified_bot_ value is a boolean indicating whether such request comes from a Cloudflare allowed bot.

Cloudflare has built an allowlist of good, automated bots, e.g. Google Search Engine, Pingdom, and more.
Cloudflare has built an allowlist of good, automated bots, for example Google Search Engine, Pingdom, and more.

This allowlist is large based on reverse DNS verification, meaning that the IPs we allow really match the requesting service. In addition to this, Cloudflare uses multiple validation methods including ASN blocks and public lists. If none of these validation types are available for a customer, we use internal Cloudflare data and machine learning to identify legitimate IP addresses from good bots.

Expand Down Expand Up @@ -103,7 +103,7 @@ If you are experiencing errors with your bot solution and need to submit a Suppo

:::caution

The following information gathering are required when you are experiencing issues (e.g. false positives) with Enterprise Bot Management only (Enterprise plan).
The following information gathering are required when you are experiencing issues (for example, false positives) with Enterprise Bot Management only (Enterprise plan).

Because Bot Fight Mode (BFM) and Super Bot Fight Mode (SBFM) are set at a domain level, we often find that disabling these features is the best solution to false positives.

Expand Down Expand Up @@ -136,7 +136,7 @@ Please follow instructions in the following questions on how to disable BFM and

**How to disable BFM/SBFM feature?**

If you encounter any issues with BFM/SBFM feature (e.g. false positive), you can disable it under **Security** > **Bots**.
If you encounter any issues with BFM/SBFM feature (for example, false positive), you can disable it under **Security** > **Bots**.

- For **Free** plans, toggle the **Bot Fight Mode** option to **Off**
- For **Pro** plans, click the **Configure Super Bot Fight Mode** link and set each of **Definitely automated** and **Verified bots** features to **Allow**, and toggle the **Static resource protection** and **JavaScript Detections** options to **Off**
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/browser-rendering/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you are attempting to scan your **own zone** and need Browser Rendering to ac

##### Code generation from strings disallowed for this context while using an Xpath selector

Currently it's not possible to use Xpath to select elements since this poses a security risk to Workers.
Currently it is not possible to use Xpath to select elements since this poses a security risk to Workers.

As an alternative try to use a css selector or `page.evaluate` for example:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Rather than using Browser Rendering to navigate to a user-provided URL, manually
You can generate your HTML or CSS using any method you like. This example uses string interpolation, but the method is also fully compatible with web frameworks capable of rendering HTML on Workers such as React, Remix, and Vue.
:::

For this example, we're going to take in user-provided content (via a '?name=' parameter), and have that name output in the final PDF document.
For this example, we are going to take in user-provided content (via a '?name=' parameter), and have that name output in the final PDF document.

To start, fill out your `generateDocument` function with the following:

Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/browser-rendering/platform/playwright.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ sidebar:

import { Render, WranglerConfig, TabItem, Tabs } from "~/components";

[Playwright](https://playwright.dev/) is an open-source package developed by Microsoft that can do browser automation tasks; it's commonly used to write frontend tests, create screenshots, or crawl pages.
[Playwright](https://playwright.dev/) is an open-source package developed by Microsoft that can do browser automation tasks; it is commonly used to write frontend tests, create screenshots, or crawl pages.

The Workers team forked a [version of Playwright](https://github.com/cloudflare/playwright) that was modified to be compatible with [Cloudflare Workers](https://developers.cloudflare.com/workers/) and [Browser Rendering](https://developers.cloudflare.com/browser-rendering/).
The Workers team forked a [version of Playwright](https://github.com/cloudflare/playwright) that was modified to be compatible with [Cloudflare Workers](/workers/) and [Browser Rendering](/browser-rendering/).

Our version is open sourced and can be found in [Cloudflare's fork of Playwright](https://github.com/cloudflare/playwright). The npm package can be installed from [npmjs](https://www.npmjs.com/) as [@cloudflare/playwright](https://www.npmjs.com/package/@cloudflare/playwright):

Expand Down Expand Up @@ -195,7 +195,7 @@ Using the above, the browser will stay open for up to 10 minutes, even if inacti

## Session management

In order to facilitate browser session management, we've extended the Playwright API with new methods:
In order to facilitate browser session management, we have extended the Playwright API with new methods:

### List open sessions

Expand All @@ -220,7 +220,7 @@ Notice that the session `478f4d7d-e943-40f6-a414-837d3736a1dc` has an active wor

### List recent sessions

`playwright.history()` lists recent sessions, both open and closed. It's useful to get a sense of your current usage.
`playwright.history()` lists recent sessions, both open and closed. It is useful to get a sense of your current usage.

```json
[
Expand Down Expand Up @@ -268,7 +268,7 @@ You should also be able to access this information in the dashboard, albeit with

## Playwright API

The full Playwright API can be found [here](https://playwright.dev/docs/api/class-playwright).
The full Playwright API can be found at the [Playwright API documentation](https://playwright.dev/docs/api/class-playwright).

Note that `@cloudflare/playwright` is in beta. The following capabilities are not yet fully supported, but we’re actively working on them:

Expand Down
Loading