Mail obfuscation method is still avaliable?
-
Hello,
I am using the code below that you provided some time ago here on the forum to obfuscate some email addresses like the method that Complianz uses.
function cmplz_obfuscate_shortcode(
$atts = array(), $content = null, $tag = ''
) {
$atts = shortcode_atts( array(
'email' => '',
), $atts, $tag );
$email = sanitize_email($atts['email']);
ob_start();
echo COMPLIANZ::$document->obfuscate_email($email);
return ob_get_clean();
}
add_shortcode( 'cmplz_obfuscate', 'cmplz_obfuscate_shortcode' );The problem is that I tested on the front end today and copied an email that was using this shortcode, and the email was pasted on a notepad perfectly fine. You informed me on a previous topic that the method has changed but the obfuscation still works. But how can the obfuscation work if I can copy the address as a user? A bot can also do that.
Can you please provide some more information on this one?
Best Regards
The topic ‘Mail obfuscation method is still avaliable?’ is closed to new replies.