ReCaptcha private key is visible in source code. How to hide?
-
Everything is working fine. But both public key and private key is visible in source code (ctrl+ U) of my webpage. Private key is exactly same as original one.
I am using a plugin “Theme my Login (TML)” so my visitors see frontend login form and register form instead of backend. The Recaptcha is appearing automatically below the form and is working fine. I don’t need to enter any php tag manually which we do in case of custom form. But the issue is – my Private key, which should be kept secret, is appearing in the source code.
Note: in “Theme my Login (TML)” plugin there is built-in feature for ReCaptcha but for some reason it is appearing and working, so I am using Google Captcha plugin.
I have also tried by creating a new custom form. In my custom form, just above the submit button, I have entered the php tag –
<?php if( function_exists( 'gglcptch_display' ) ) { echo gglcptch_display(); } ; ?>
and is working fine but the only problem is that the Private key is appearing in the source code.Please suggest the solution.
- The topic ‘ReCaptcha private key is visible in source code. How to hide?’ is closed to new replies.