Avoid syncAttackData script tag in cached pages
-
I’m using Wordfence with WordPress fastest cache, and noticed that on some (cached) pages, there is this script tag
<script type="text/javascript" src="https://mydomain.com/?wordfence_syncAttackData=xxxxx" async></script>
inside the <head /> tag.The script sometimes loads very slowly (>10 sec), and blocks the execution of some window.onload script.
Searching the forum I found https://www.ads-software.com/support/topic/syncattackdata-query-parameters/, which said that this script “isn’t supposed to appear in the page source for visitors…However, it can do that if your site is not able to make the call in the normal way.”.
So, what is needed for Wordfence to make calls in the ‘normal way’?
Also, are there a way to absolutely prevent Wordfence from adding this script (and any other script tag?) under all circumstances?FYI, the site I’m dealing with is running:
– WordPress 5.4
– Wordfence 7.4.6
– using the MySQLi storage engine mode https://www.wordfence.com/help/firewall/mysqli-storage-engine/
– inside Azure Webapp for Container https://azure.microsoft.com/en-us/services/app-service/containers/
– using the default WordPress Docker image https://hub.docker.com/_/wordpress/
– currently put behind .htpasswd password protectionAny help is appreciated!
- The topic ‘Avoid syncAttackData script tag in cached pages’ is closed to new replies.