Created
March 1, 2019 09:18
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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