I’m having the same issue. I want to add Javascript code to my header, but Wordfence keeps blocking me. I tried disabling the plugin but STILL got the 403 message below, so I reactivated Wordfence and tried adding the script a different way, but the 403 message appeared again. There are threads on here claiming that we should be able to enable Learning Mode as a workaround, but the Firewall Options described in those threads and on the Wordfence site (https://www.wordfence.com/help/firewall/learning-mode/) DO NOT EXIST on my WP dashboard. I’m guessing they would appear if I had the premium version, but until then, how can I add code to my header AND keep Wordfence?
Help, please! (Thanks!)
…THE DREADED MESSAGE from WORDFENCE…
A potentially unsafe operation has been detected in your request to this site
Your access to this service has been limited. (HTTP response code 403)
If you think you have been blocked in error, contact the owner of this site for assistance.
Block Technical Data
Block Reason: A potentially unsafe operation has been detected in your request to this site
Time: Thu, 19 Nov 2020 14:31:34 GMT
About Wordfence
Wordfence is a security plugin installed on over 3 million WordPress sites. The owner of this site is using Wordfence to manage access to their site.
You can also read the documentation to learn about Wordfence’s blocking tools, or visit wordfence.com to learn more about Wordfence.
Click here to learn more: Documentation
Generated by Wordfence at Thu, 19 Nov 2020 14:31:34 GMT.
Your computer’s time: Thu, 19 Nov 2020 14:31:34 GMT.