It has been a common practice on campus for many years to simply throw an email address on a web page so people can easily be contacted. It’s convenient and makes us more available to our students. However, the practice of adding email addresses to pages has one detrimental side affect.  SPAM. By adding raw email address to pages bots (automated internet robot applications) scrape our pages and collect these email addresses and send them to spammers.

In an effort to make our website a better place we here in web service strongly recommend that anyone adding wanting to add an email address to a page use a technique called obfuscation. We have added a simple javascript based email obfuscation script to our core include folder which will allow you to easily do this.

First you need to add the script into the header (preferably) of your page. If your page is .asp based you’ve probably seen this at the top of your page:

[code lang="asp"]




[/code]

Add the following under the “put extra head html /css after me” part.

[code lang="asp"]




[/code]

After that usage is a snap simply add in the following line instead of your typed email address.

[code lang="html"]

[/code]

The first parameter is the email address you want to use minus the @uwgb.edu portion.  The second parameter is the link text you want to display ( DO NOT USE THE ACTUAL EMAIL ADDRESS ) Even though at this point many of the email addresses that have been posted have already been harvested it’s never to late to start making things harder for the bots.