• Resolved darcemac

    (@darcemac)


    Wordfence seems to be blocking iFrames that I have embedded using an ACF text field.

    I have gone through the steps and whitelisted the url but I still cant see the iFrame.

    Would something like this be beneficial?

    add_filter(‘wordfence_whitelist_activity’, function($patterns) {
    // Allow iframes from specific URLs
    $patterns[] = ‘https://www.visionabacus.net’;
    return $patterns;
    });

Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @darcemac, thanks for your question.

    It sounds like Learning Mode could help here. From the Wordfence Dashboard click on Manage WAF. Then you will see Basic Firewall Options > Web Application Firewall Status. Change the option to Learning Mode. Now perform the actions that were causing issues, such as visiting the page(s) containing the iframe code. This will help Wordfence learn that these actions are normal and it will allow them in the future. After you have finished performing the actions, switch the WAF from Learning Mode back to Enabled and Protecting. Now test to see if your iframe works correctly.

    If that doesn’t help, take a look at your?browser console?to see if any potential CSP rules or code containing errors are flagged there. Feel free to post any messages you see here if you’re not sure of the cause.

    Thanks,
    Peter.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.