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 improve compatibility, WP Rocket automatically adds our server's IP (141.94.254.72) to the Wordfence allowlist:

If you still have issues, please proceed with the following steps:

  1. Go to Wordfence > Firewall > 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.