Reply
Email address scrambling/encryption
Old 05-16-2006, 06:03 PM Email address scrambling/encryption
Novice Talker

Posts: 14
Location: Missouri
I am trying to keep people from harvesting an email address on a friend's site. A while back I grabbed some code that said it would do this. Here is the code I got and it is supposed to go between the head tags..

<SCRIPT language="JavaScript">
function unScramble(eMail1,eMail2,linkText,subjectText,stat usText){
var a,b,c,d,e;a=eMail1;c=linkText;b=eMail2.substring(0 ,eMail2.length-5);
if(subjectText!=""){d="?subject="+escape(subjectTe xt);}else{d="";}
if(statusText!=""){e=" onMouseOver=\"top.status=\'"+statusText+
"\'\;return true\;\" onMouseOut=\"top.status=\'\'\;return true\;\"";}else{e="";}
document.write("<A HREF=\"mai"+"lto:"+a+"@"+b+d+"\""+e+">"+c+"</A>");}
</SCRIPT>


But I wasn't real great with my notes and I also had this next code below (I had it a few lines below the above code) and I am wondering, will the above code between the head tags work alone, or do I need this code below also? If so, where does the code below go?

<script language="JavaScript">unScramble("me","mydomain.co mplete","Email me","","");</script><noscript>Email me: me/ÄT/mydomain/DÖT/-c-o-m-/</noscript>


Or this this second set of code just ANOTHER way to encrypt my email address or hide it from the harvesters?

Also, has anyone heard of some software called "email scrambler". The file name is a zip named escramb.zip. If so, does it work good?

Any ideas on how to keep the spiders from harvesting an email would be appreciated. Thanks
spiritlady is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-16-2006, 06:12 PM Re: Email address scrambling/encryption
Skilled Talker

Posts: 92
I write my address like email[at]domain.com or something like that. You could even just say that "I use Yahoo and my name there is ScubaSteve." If you make it pretty clear what you're doing people can figure it out. And if they want to e-mail you they still will.
waffles is offline
Reply With Quote
View Public Profile Visit waffles's homepage!
 
Old 05-16-2006, 07:03 PM Re: Email address scrambling/encryption
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,314
Name: Keith Marshall
Location: West Hartford, CT
I once seen a creative mailto link (although I don't know if it works good or not) in which the mailto was url encoded. The way I seen it it was that every other charature was encoded...

HTML Code:
<a href="mailto:%6Be%69t%68%40k%6da%72s%68a%6cl%2E%63o%6D">keith at kmarshall dot com</a>

You can get the hex from just about any modern text editor, just add the % sign before the hex number.


__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-17-2006, 04:30 AM Re: Email address scrambling/encryption
Minaki's Avatar
Cheerleader

Posts: 1,626
Location: Guildford, UK
The hex method and the [at] method are both completely useless against all but the simplest of e-mail harvesters. Don't even bother using them.

I'm not sure about the JavaScript ones, but I have heard of harvesters getting around them. I haven't tested it myself so I can't say for sure.

Personally, I either use an obfuscated image, or a server side contact form.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-17-2006, 07:28 AM Re: Email address scrambling/encryption
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
"server side contact form"

Me 2
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 05-17-2006, 08:57 AM Re: Email address scrambling/encryption
Ultra Talker

Posts: 252
Location: Auckland, New Zealand
Email address harvestors are becoming more sophisticated that it's probably best to not display your email address at all and do what other people are suggesting and create a contact form instead in which you can store your email address server side which will be hidden from view, provide a means for people to contact you without opening their email client up, etc.

This is probably a far better way than hiding your email address.

Harvestors can understand URL encoding, and some can now even interpret Javascript, so it's by no means effective.

Something that maybe effective is that say you have a mailto link to your email, instead of linking it to your email address, use the onclick attribute to call a javascript function (in a separate source file) which builds your email address as if they just clicked on a mailto link. I'm sure some of the harvestors are unable to perform click methods but that's just something I thought of at this moment. Haven't had the chance to think it through thoroughly yet.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 05-17-2006, 11:23 AM Re: Email address scrambling/encryption
Novice Talker

Posts: 14
Location: Missouri
Thanks all for the replies. I personally think a contact form is the est way to go although, I realize some people may want to just get my email address and email me later. But this was for a friend's site and it is up to him if he will do that.
spiritlady is offline
Reply With Quote
View Public Profile
 
Old 05-17-2006, 05:59 PM Re: Email address scrambling/encryption
vangogh's Avatar
Post Impressionist

Posts: 8,652
Name: Steven Bradley
Location: Boulder, Colorado
I think the only way to stop harvesters is to use an image to display your email addess, but of course then it won't be clickable. The contact form is probably the best way to go.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-17-2006, 09:36 PM Re: Email address scrambling/encryption
kIDJOE's Avatar
Extreme Talker

Posts: 180
Location: Hollywood, CA
I agree that the best way is to use an image, you can also write down your email address without any actions, meaning outside an A HREF tag, it wont be clickable but it also it wont be indexable by bots. If some one really wants to contact you the will type in your email address.
__________________

Traffic School - Driver Ed - Defensive Driving
Statistics: The only science that enables different experts using the same figures to draw different conclusions.

Driver Education Online - Online Traffic School - Texas Defensive Driving
kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Old 05-18-2006, 08:22 AM Re: Email address scrambling/encryption
Minaki's Avatar
Cheerleader

Posts: 1,626
Location: Guildford, UK
Quote:
Something that maybe effective is that say you have a mailto link to your email, instead of linking it to your email address, use the onclick attribute to call a javascript function (in a separate source file) which builds your email address as if they just clicked on a mailto link. I'm sure some of the harvestors are unable to perform click methods but that's just something I thought of at this moment. Haven't had the chance to think it through thoroughly yet.
http://reliableanswers.com/js/mailme.asp
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-18-2006, 07:52 PM Re: Email address scrambling/encryption
kIDJOE's Avatar
Extreme Talker

Posts: 180
Location: Hollywood, CA
thats would do too
__________________

Traffic School - Driver Ed - Defensive Driving
Statistics: The only science that enables different experts using the same figures to draw different conclusions.

Driver Education Online - Online Traffic School - Texas Defensive Driving
kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Old 05-19-2006, 07:34 AM Re: Email address scrambling/encryption
Novice Talker

Posts: 8
Location: East Sussex, UK
howabout a small flash button with a mailto: ?
even if its just plain text to blend with the rest of the html page...
arcana is offline
Reply With Quote
View Public Profile
 
Old 05-19-2006, 07:40 AM Re: Email address scrambling/encryption
Minaki's Avatar
Cheerleader

Posts: 1,626
Location: Guildford, UK
Anywhere you have an e-mail address in plain text makes it possible to be picked up by spiders. At the end of the day, if one computer program can do it then so can another. (i.e. If the end users browser can pick up on an e-mail address and open the mail client, then a spam harvester can do the same thing) And mailto: has nothing to do with it - have you ever typed an e-mail address into a word processor to have it automatically turn into a link?

The difference with images is the human aspect. Harvesters can't read images but humans can.

Contact forms work because the e-mail address is never sent to the client. The e-mail text is sent to the server and the server deals with the e-mail processing.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-19-2006, 08:22 AM Re: Email address scrambling/encryption
Ultra Talker

Posts: 252
Location: Auckland, New Zealand
Hey Minaki,

Thanks for that link, it clears some things up, except, I don't feel 100% sure that anything clientside would be effective considering that the onmouseover/onfocus, on(any action) still relies on generating information using javascript. Since javascript can easily be processed by a harvestor, so even if these actions don't happen, they can still evaluate your javascript and get back the expected results. Even Shawn agrees it's not foolproof and can be broken

Serverside and images would be the only effective measure you could take to address this, though now I'm questioning whether CSS would be effective against this too, considering you can generate content with it and I'm not sure whether harvestors dive into this side of thing, or even bother about something that's considered presentational only.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 05-19-2006, 10:04 AM Re: Email address scrambling/encryption
Novice Talker

Posts: 8
Location: East Sussex, UK
so just to clarify that...

your saying even with the mailto: (url) ...embedded in the flash movie button (not in the html), so it isnt visible in the source code whatsoever.

They can still pick the email address up?

i always thought you could never tell with flash, seeing as its not in the webpage source code and even with hovering over theres no way of seeing what your clicking to.

if you use the flash button like a simplge jpg button and add the link to the email on the flash button in html, then yes of coarse you can see the email address.

(if your about to tell me ive been wrong all this time, runs to his site, boots down door, and tears that flash email movie clip off his site) lol
arcana is offline
Reply With Quote
View Public Profile
 
Old 05-19-2006, 11:45 AM Re: Email address scrambling/encryption
Minaki's Avatar
Cheerleader

Posts: 1,626
Location: Guildford, UK
Quote:
Thanks for that link, it clears some things up, except, I don't feel 100% sure that anything clientside would be effective considering that the onmouseover/onfocus, on(any action) still relies on generating information using javascript. Since javascript can easily be processed by a harvestor, so even if these actions don't happen, they can still evaluate your javascript and get back the expected results. Even Shawn agrees it's not foolproof and can be broken
Not knowing the internal workings of an e-mail harvester, it's impossible to say fo sure, but I would of thought if one happened to have an internal JS interpreter, it would most likely be a pre-written one and not made for the express purpose of harvesting e-mail addresses. Javascript can get incredibly complex when you think about the number of combinations of values could be passed to any number of functions, so trying to execute every function to see if it resulted in an e-mail address being created could easily overwhelm the bot.

Quote:
Serverside and images would be the only effective measure you could take to address this, though now I'm questioning whether CSS would be effective against this too, considering you can generate content with it and I'm not sure whether harvestors dive into this side of thing, or even bother about something that's considered presentational only.
Can you give an example?

Quote:
your saying even with the mailto: (url) ...embedded in the flash movie button (not in the html), so it isnt visible in the source code whatsoever.

They can still pick the email address up?
With flash, again, I can't say for sure because I don't know the internal workings of flash. You could try creating this then opening the flash file in a hex editor and see if your e-mail address is displayed in clear text anywhere...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-19-2006, 11:58 AM Re: Email address scrambling/encryption
Novice Talker

Posts: 8
Location: East Sussex, UK
ah ok, sounds like an interesting experiment


Online forms do seem like the best way, ...BUT only as long as you get an auto confirmation email straight away including the message you sent them.
Its the only thing as a user of these forms that i havnt liked.

Because then you think....(well i do anyway) lol

1. did it get to them
2. what did i send again?


anyway...ill try a hex editor on a flash file and see what it comes up with, it also might be different with the latest version of flash.
arcana is offline
Reply With Quote
View Public Profile
 
Old 05-19-2006, 10:49 PM Re: Email address scrambling/encryption
Ultra Talker

Posts: 252
Location: Auckland, New Zealand
What I was thinking was using CSS with the :before or :after for content: 'contact me at youremail[at]domain.com'.

This does not show up within source code of your documents apart from inside the CSS, and it also isn't selectable so you can't copy and paste it. Now only harvestors that could understand styling would be able to grab this, but I think they bother with this because I feel most harvestors are not visual and just dig through content.

An example would be:

In your CSS file:

Code:
a#email:before { content: 'email'; }
a#email:after { content: 'yourdomain.com'; }
In your page:

HTML Code:
<a id="email">@</a>
And the results would go something like this:

Code:
email<a id="email">@</a>yourdomain.com
and be displayed like:

Code:
email@yourdomain.com
while source code will only show this:

HTML Code:
<a id="email">@</a>
Now you could use javascript to possibly allow it to be selected and copied for easier use.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.

Last edited by mastercomputers : 05-19-2006 at 10:54 PM.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
<