Email Address Spam Protection

Filed Under (Scripts) by Nick on 05-07-2008

Tagged Under : ,

Here is a email spam protection script which is rather simple and just does it’s job. It also degrades nicely too. I have used it on many sites but as wordpress doesn’t easily allow javascript within posts its a bit harder to use in wordpress but it works well on other sites :)

To be able to integrate this javascript email mange script you need to replace the words email and domain.com.au with your details and then place it on your website.

<script language=”javascript”>
var h5dga = ‘<a href=”mailto:email-[at]-domain.com.au“>email-[at]-domain.com.au</a>’;
var h5dga = h5dga.replace(’-[at]-’, ‘@’);
document.write(h5dga.replace(’-[at]-’, ‘@’));
</script>