> For the complete documentation index, see [llms.txt](https://cmp.docs.sirdata.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cmp.docs.sirdata.net/en/install/cache-systems-exclusion/cloudflare-wordpress-plugin.md).

# Cloudflare WordPress Plugin

The Cloudflare plugin for WordPress allows easy integration and configuration of Cloudflare’s services, including caching and resource optimization. To ensure the proper functionality of Sirdata CMP scripts, it’s crucial to exclude them from caching and optimization processes.

***

**Steps to Exclude Sirdata CMP Scripts in the Cloudflare Plugin**

1. **Access Cloudflare Plugin Settings**
   * Log in to your WordPress Admin Dashboard.
   * Go to **Settings > Cloudflare**.
2. **Configure Cache Exclusions**
   * In the plugin interface, click on **Page Rules** in the Cloudflare dashboard.
   * Click **Create Page Rule**.
   * In the **URL** field, enter the following domains or paths to exclude them from caching:

     ```
     *consentframework.com/*
     *abconsent.net/*
     ```
   * Under the rule settings, choose **Cache Level: Bypass**.
3. **Disable Automatic Optimizations**
   * Navigate to the **Speed** tab in the Cloudflare plugin.
   * Disable features like **Auto Minify** for JavaScript, CSS, and HTML if they are enabled.
4. **Add Specific Rules for Sirdata Scripts (if applicable)**
   * If specific optimizations are enabled (e.g., Cloudflare’s Rocket Loader), you can exclude Sirdata scripts.
   * Go to **Settings > Optimization** in the Cloudflare dashboard.
   * Disable **Rocket Loader** or add an exclusion for Sirdata scripts using the `data-cfasync="false"` attribute in the script tag.
5. **Save and Apply Changes**
   * After configuring the exclusions, click **Apply Settings** to save the changes.
6. **Purge Cache**
   * In the Cloudflare plugin, navigate to the **Cache** tab.
   * Click **Purge Everything** to clear the cache and immediately apply the new rules.
7. **Verify Exclusions**
   * Test your website to ensure that the Sirdata CMP scripts are functioning correctly. Use tools like browser DevTools to confirm that the scripts are loading without interference.

***

**Why Exclude Sirdata CMP Scripts?**

* **Dynamic and Geolocated Behavior**: Sirdata CMP scripts dynamically adapt to users’ locations and preferences. Caching or optimizing these scripts can result in incorrect or outdated content being served.
* **Regulatory Compliance**: These scripts are critical for adhering to privacy regulations. Any interference from caching or optimization may lead to non-compliance, complaints, or revenue loss.

***

By following these steps, the Cloudflare plugin will exclude Sirdata CMP scripts from caching and optimization processes, ensuring proper functionality and compliance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cmp.docs.sirdata.net/en/install/cache-systems-exclusion/cloudflare-wordpress-plugin.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
