Forum Home
Press F1
 
Thread ID: 68361 2006-04-25 22:15:00 Code to sit behind email addresses on websites sharkeysdragon (10243) Press F1
Post ID Timestamp Content User
449431 2006-04-25 22:15:00 Hi There,

I'm wondering if anyone knows of any code that can sit behind email addresses on a website, that will stop search engine spiders and spammers from harvesting the email addresses for spam lists?

Appreciate any help.

Cheers
Sharkeysdragon
sharkeysdragon (10243)
449432 2006-04-25 22:25:00 You have a few options...

You can use a robots.txt to stop spiders:

www.robotstxt.org

Or display email addys as you [at] yourdomain or in an image rather than text etc...

But to be honest, i've always favoured good spam filtering rather than inhibiting my users experience! :yuck:
superuser (7693)
449433 2006-04-26 00:07:00 The key is to obscufate the email address. This can be done a variety of ways - without reducing the website's useability - and is fairly quick and painless. Things like using javascript to generate the email address, to break it up, etc, are fairly common and easy to find. Google "Email address obscufation" and you should find some worthwhile information there.

Who the hell made up the word "obscufate" anyway? Man, that's a tough word...
Neongreen (6358)
449434 2006-04-26 00:50:00 I'm wondering if anyone knows of any code that can sit behind email addresses on a website, that will stop search engine spiders and spammers from harvesting the email addresses for spam lists?

Yep, if you don’t mind using JavaScript:

Try this:


<script language=JavaScript>
<!--
var contact = "what you what displayed on the site eg:you [@] yourdomain.co.nz"
var email = "name: eg:someone"
var emailHost = "your e-mail host eg: xtra.co.nz"
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">"+ contact + "</a>" + ".")
//-->
</script>

Hope this helps :)
stu161204 (123)
449435 2006-04-26 08:12:00 Obfuscate, not obscufate. Are uoy dyxlestic ro soemthign?

And obfuscate is much easier to say.
TideMan (4279)
449436 2006-04-26 08:21:00 Haha, not dyslexic. Didn't reayll know how the word was pronounced, so i typed it into elgoog and went with what it suggested in terms of slepping :p Neongreen (6358)
449437 2006-04-27 04:12:00 Similar to Stu's suggestion I have used this web app called the enkoder:
automaticlabs.com
Mary (6534)
449438 2006-04-27 04:20:00 Javascript is popular, but there's a solution that doesn't involve any coding: "to mung" / "munged" / "munging"

. techtarget . com/sDefinition/0,,sid14_gci894881,00 . html" target="_blank">searchsecurity . techtarget . com

Munging (pronounced (MUHN-jing or MUHN-ging) is the deliberate alteration of an e-mail address online with the intent of making the address unusable for Web-based programs that build e-mail lists for spamming purposes .
. . .
Here are four examples of the munging of stangib@reno . com:

stangib at reno dot com
s-t-a-n-g-i-b-at-r-e-n-o-d-o-t-c-o-m
stangibNOSPAM@reno . com
My username is stangib, and the domain name is reno dot com .
. . .

The term munging probably derives from the acronym mung (pronounced just as it looks), which stands for "mash until no good . " It may also derive from the hackers' slang term munge (pronounced MUHNJ), which means "to alter information so it is no longer accurate . "
kingdragonfly (309)
1