• Resolved Varun Pahwa

    (@varunpahwa)


    Hi Team Wordfence,

    I am using the WPRocket plugin on my website and I want to use their remove unused CSS feature.
    However, I figured out that Wordfence blocks the WPRocket bot and marks its process as LFI so I put Wordfence into learning mode to remove unused CSS from my website.

    Everything worked fine and the unused CSS was properly removed.

    The problem is, whenever I update my plugins or anything in the stylesheet, the wprocket plugin sends its remove unused CSS bot again and the bot gets blocked. I mean it is not possible to turn wordfence to learning mode again and again so that it doesn’t block the wprocket bot from removing the unused CSS.

    Please help me out or make your plugin properly compatible with WPRocket.

    Regards,
    Varun

    PS: I check the blocking of the wprocket bot in the wordfence live traffic feature.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • A simple web search reveals this:

    https://docs.wp-rocket.me/article/126-using-wordfence-with-wp-rocket

    Did you try their solution?

    Plugin Support wfpeter

    (@wfpeter)

    Hi @varunpahwa,

    WP Rocket plugin’s “Remove Unused CSS” feature has come up a couple of times recently. Generally, Learning Mode may need to be enabled for a few days to see if it will catch all possible combinations of requests made. Set a suitable date for it to automatically switch back to Enabled and Protecting accordingly.

    Alternatively, if you have a virtual private server or a dedicated server for just this website then you can add the server’s public IP address to the option Allowlisted IP addresses that bypass all rules found in the Wordfence > All Options > Advanced Firewall Options section. Do not do this if your site is hosted on a shared hosting server because if another compromised site on the same server attacks your site then the attacks will bypass all Wordfence protection.

    Thanks,

    Peter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incompatibility with WPRocket’ is closed to new replies.