# 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="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FQbD6jzqRXO1SzqXpkT3b%2FScreenshot%202025-10-08%20185855.png?alt=media&#x26;token=fd69003b-786b-4134-92b5-ba66ec1adb04" alt=""><figcaption><p>Cloudflare dashboard > Security > Security Rules section</p></figcaption></figure>

Now, click on **Create rule**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FhDbsgeYd5YNzurQnaJ1W%2FScreenshot%202025-10-08%20190108.png?alt=media&#x26;token=4ace8181-0bbb-41ad-965f-9c9353ab8a75" alt=""><figcaption><p>Click on Create rule</p></figcaption></figure>

Next, select the custom rules option.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FZQZ3URMcwQ5dhrRrurmx%2FScreenshot%202025-10-08%20190315.png?alt=media&#x26;token=52a074b3-67e4-4a71-9808-2fcc80eccdcd" alt=""><figcaption><p>Select the custom rules option</p></figcaption></figure>

Here, set the rule name.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F8o80NU61vXbcEngs7zeR%2FScreenshot%202025-10-08%20190401.png?alt=media&#x26;token=e30afbbf-629f-4e96-a9b8-6625d322264e" alt=""><figcaption><p>Set the rule name</p></figcaption></figure>

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

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FXC4nvxJpoMTL9VhRJMqY%2FScreenshot%202025-10-08%20190519.png?alt=media&#x26;token=5b845562-be45-4c97-8b13-a6b184ae6e1d" alt=""><figcaption><p>Select the "User Agent" field</p></figcaption></figure>

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

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F0FqF81HErNvue1LwoOgW%2FScreenshot%202025-10-08%20190617.png?alt=media&#x26;token=286ee221-fc88-4f44-83d0-195e8cb504cb" alt=""><figcaption><p>Select the "contains" operator</p></figcaption></figure>

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

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F2PQJPsLxB5Bs7qgx8RkM%2FScreenshot%202025-10-08%20190743.png?alt=media&#x26;token=eb275234-bfe3-403f-8e7d-f8b58bcbb5db" alt=""><figcaption><p>Set "goaffpro" as the value</p></figcaption></figure>

Now, choose the skip action.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FxnxSjhp7BBBwfBErmDmJ%2FScreenshot%202025-10-08%20190838.png?alt=media&#x26;token=56d32101-2989-4b41-b2dd-5cad98e50fde" 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="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FSJ87xmVHyTaJ08khTTsa%2FScreenshot%202025-10-08%20190952.png?alt=media&#x26;token=fe4b3e00-76c5-4e29-8c80-39bd264f317c" alt=""><figcaption><p>Select the WAF components to skip</p></figcaption></figure>

Finally, click on **Deploy**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FBFMHxL9zVbhehMyNImOj%2FScreenshot%202025-10-08%201909524.png?alt=media&#x26;token=d20fedb0-020a-49e7-8caa-4174e302215d" alt=""><figcaption><p>Click on Deploy</p></figcaption></figure>

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

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FccZoi3IBBb1950JRxdF1%2FScreenshot%202025-10-08%20191051.png?alt=media&#x26;token=ebb4e253-d74b-494a-8685-74abccd8af34" alt=""><figcaption></figcaption></figure>

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