Simple concatenation
-
Hi!
I suggest to put a simple “obfuscation” in the data in the front end to avoid spammers like in the php cut the string in 2 parts and in javascript concatenate the string. I did a sample in the chatgpt:
<?php
// Example email to obfuscate
$email_part1 = "info";
$email_part2 = "@example.com";
?>
<!-- Embed the parts in a way that isn't obvious -->
<span id="email" data-part1="<?php echo $email_part1; ?>" data-part2="<?php echo $email_part2; ?>"></span>
<script>
document.addEventListener("DOMContentLoaded", function () {
let emailElement = document.getElementById("email");
let part1 = emailElement.getAttribute("data-part1");
let part2 = emailElement.getAttribute("data-part2");
// Combine the parts
emailElement.innerText = part1 + part2;
});
</script>Good performance and the bots will not have intelligence to capture it.
Best regards
- You must be logged in to reply to this topic.