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:
- Go to the Dashboard -> Wordfence -> Firewall
- Select Learning mode as in the screenshot:
- Save settings.
- Enable Remove Unused CSS feature in WP Rocket and wait until the process is completed.
- Change back the Wordfence settings from Learning Mode to Enabled and Protecting.
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.