Using Wordfence with WP Rocket

Although WP Rocket is compatible with the Wordfence plugin, there are a few things that can cause trouble.

Firewall blocks Remove Unused CSS feature

Wordfence firewall can block our tool and cause 403 errors when Remove Unused CSS process is running. 

To resolve this, please proceed with the following steps:

  1. Go to Wordfence > All Options > Firewall Options > Basic Firewall Options
  2. Select Learning mode as in the screenshot:
  3. Save settings.
  4. Enable Remove Unused CSS feature in WP Rocket and wait until the process is completed.
  5. Change back the Wordfence settings from Learning Mode to Enabled and Protecting.

Live Traffic

This option can be useful in some cases, but it will slow down your website. Unfortunately, WP Rocket as well as any other caching plugin cannot control this, so we highly recommend not to use this functionality of WordFence.

If you are not sure where to find these options inside WordFence, check out this short video.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.