Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Created March 1, 2019 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WordPress-Handbuch/4c782212f0c035f1bbee5cc85df75eda to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/4c782212f0c035f1bbee5cc85df75eda to your computer and use it in GitHub Desktop.
Dynamic generation of a contact e-mail address as a measure against simple scan bots
<script type="text/javascript">
verschleierteemailadresse('info', 'wordpress-handbuch', 'com', 'Betreffzeile');
function verschleierteemailadresse(eins,zwei,drei,vier) {
document.write('<a href="mailto');
document.write(':' + eins + '@');
document.write(zwei + '.' + drei + '?subject=' + vier + '">' + eins + '@' + zwei + '.' + drei + '</a>');
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment