# WooCommerce Cloudflare Security Rule

### To set up a custom security rule for GoAffPro, if you are using Cloudflare:&#x20;

Open your Cloudflare dashboard and go to the Security > Security rules section.&#x20;

<figure><img src="/files/Y0iM37xekjHLI5JJ3wMd" alt=""><figcaption><p>Cloudflare dashboard > Security > Security Rules section</p></figcaption></figure>

Now, click on **Create rule**.

<figure><img src="/files/ZoCffZt27OE8IqE674SR" alt=""><figcaption><p>Click on Create rule</p></figcaption></figure>

Next, select the custom rules option.

<figure><img src="/files/E8Zjt5SnUewOblyusQuC" alt=""><figcaption><p>Select the custom rules option</p></figcaption></figure>

Here, set the rule name.

<figure><img src="/files/XzAdaLZut5KlcPzhv4YT" alt=""><figcaption><p>Set the rule name</p></figcaption></figure>

Now, select the "**User Agent**" field.

<figure><img src="/files/HLzDnVS6WiOdJLwfyV1P" alt=""><figcaption><p>Select the "User Agent" field</p></figcaption></figure>

Next, select the "**contains**" operator.&#x20;

<figure><img src="/files/lak4yDIW0hYwq61omLvS" alt=""><figcaption><p>Select the "contains" operator</p></figcaption></figure>

After this, set "**goaffpro**" as the value.

<figure><img src="/files/WKGq9ihkh6a7TKBc4FjC" alt=""><figcaption><p>Set "goaffpro" as the value</p></figcaption></figure>

Now, choose the skip action.&#x20;

<figure><img src="/files/pdnh5CvFSpVLbKZ0g0iq" alt=""><figcaption><p>Select the skip action</p></figcaption></figure>

Select the following WAF components to skip:

* All remaining custom rules.
* All rate limiting rules.
* All managed rules
* All Super Both Fight Mode Rules.&#x20;

<figure><img src="/files/KeIv038f4meESw7kUrK2" alt=""><figcaption><p>Select the WAF components to skip</p></figcaption></figure>

Finally, click on **Deploy**.

<figure><img src="/files/R2ormjUcVFHjzU1M2xLi" alt=""><figcaption><p>Click on Deploy</p></figcaption></figure>

The custom security rule will be created.&#x20;

<figure><img src="/files/JU3DXPjtfY72ouZVoVVI" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/oXkudt0Gwnk>" %}
WooCommerce Cloudflare Security Rule
{% endembed %}


---

# Agent Instructions: 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:

```
GET https://docs.goaffpro.com/how-tos/woocommerce-cloudflare-security-rule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
