• Resolved timon33

    (@timon33)


    Hello.

    I have created a small plugin that runs in background on editor and adds a subscribe button and some text if there is a video from youtube inserted in post/page.

    The text that should be added should be like this:

    Subscribe to our YouTube channel
    <script src="https://apis.google.com/js/platform.js"></script>
    <div class="g-ytsubscribe" data-channelid="our_id" data-layout="full" data-count="default"></div>

    But the script part
    <script src="https://apis.google.com/js/platform.js"></script>
    is getting removed.

    After disabling wordfence the script is inserted just fine.

    Is there a way to whitelist this action?

    Best regards

    • This topic was modified 5 years, 5 months ago by timon33.
Viewing 1 replies (of 1 total)
  • Plugin Support wfphil

    (@wfphil)

    This is likely due to the firewall seeing your custom plugin requests as being potentially malicious and blocking them. You can either whitelist these requests via the Learning Mode feature or from the Tools >> Live Traffic tool page. Both whitelisting methods are described in our instructions in the link below:

    https://www.wordfence.com/help/firewall/learning-mode/

Viewing 1 replies (of 1 total)

The topic ‘False Positive Script Blocked/Removed’ is closed to new replies.