Title: Wordfence and JavaScript
Last modified: May 11, 2022

---

# Wordfence and JavaScript

 *  Resolved [tom1899](https://wordpress.org/support/users/tom1899/)
 * (@tom1899)
 * [4 years ago](https://wordpress.org/support/topic/wordfence-and-javascript/)
 * Have some landing pages I need to put pixels on. Downloaded a plugin that lets
   me do just that.
    1. Specified the page
    2. Added the pixel (javascript)
    3. Clicked SAVE
    4. Got Wordfence warning page with message about malicious practice or something.
    5. I COULD whitelist the page – but did not.
 * Does Wordfence commonly fire warning flags when javascript is used in a headers&
   footers plugins?
 * Can I just go ahead and whitelist the pages within Wordfence?
 * Any help is appreciated.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [4 years ago](https://wordpress.org/support/topic/wordfence-and-javascript/#post-15638693)
 * Thanks for reaching out.
 * You’re not adding that page to the allowlist. You’re adding the action. We work
   hard to try and reduce false positives in our firewall but we can’t anticipate
   how every plugin developer does things to make their plugin function. When we
   block an action that is normal go ahead click to allow the action. That should
   take care of the problem. You can also put the firewall into learning mode and
   then perform the action again which does the same thing.
 * Try that and let me know how it goes.
 * Tim
 *  Thread Starter [tom1899](https://wordpress.org/support/users/tom1899/)
 * (@tom1899)
 * [4 years ago](https://wordpress.org/support/topic/wordfence-and-javascript/#post-15639408)
 * Worked perfectly Tim – appreciate the feedback!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wordfence and JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tom1899](https://wordpress.org/support/users/tom1899/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/wordfence-and-javascript/#post-15639408)
 * Status: resolved