How to remove existing DNN ReCaptcha script reference

192 views Asked by At

DNN V09.02.00 (366) adds the following script reference to every page.

<script type="text/javascript" async="" src="https://www.gstatic.com/recaptcha/api2/v1541614764654/recaptcha__en.js"></script>

We are trying to use our own Google V2 Invisible ReCaptcha, and we have added the reference to our own script file (synchronously). Unfortunately, due to the "async" attribute in DNN's reference to recaptcha, it loads after our own reference, overwriting its global grecaptcha reference.

How can we remove this script reference from DNN that we are not using?

2

There are 2 answers

1
David Poindexter On BEST ANSWER

Most likely that is being loaded by a third-party extension/module or the theme/skin. DNN is currently not using ReCaptcha at all.

1
Mitchel Sellers On

Looking at the source of DNN that is not a script that is loaded by the DNN Platform.

Do you have a third Party forms module by chance? That could be the culprit.