Web Hosting, Design, & Coding forum

General discussion

E-mail obfuscation

I'm an amateur web-master, and some people on our 'contact us' page are concerned about spam. I have received different suggestions to obfuscate email. Before I take on another learning curve, are they truly effective? (Wouldn't it just be easier to round up a posse and shoot the spammers?)

Discussion is locked
You are posting a reply to: E-mail obfuscation
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: E-mail obfuscation
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: email adress on web-page

In reply to: E-mail obfuscation

Yes, crawlers can find an email-address if you put it in the open by just having it in plain text in your html-page. That's why I put them on my site via a small script in javascript. Something like:


function ad (t,d1,d2,u) {
document.write ('<a href="mailto:' + u + '@' + d1 + '.' + d2 + '">' + t + '</a> <i>(' + u + '@' + d1 + '.' + d2 + ')</i>' );}

In my original script the @-sign is obfuscated by using the entity #064; (preceded by an &), but that doesn't show up due the forum software.

If the address is this puts on the screen t u@d1.d2, but webcrawlers won't see it.

For example
<script type="text/javascript">
ad ("webmaster","hotmail","com","wilsonpop1");
</script>

makes a clickable mailto-link for webmaster and show the address behind it for those of the readers that use webmail so have to copy and paste the address (mailto links won't work with webmail).

Hope this helps.


Kees

Collapse -
but does it work?

In reply to: Re: email adress on web-page

Thanks Kees - but are good crawlers able to eventually get behind the efforts you mentioned? Seems like a good programmer would be able to get into the source and look for words like hotmail or comcast or whatever.

Collapse -
No it doesn't

In reply to: but does it work?

Here's why -> "With these three attributes, enough time, and perhaps a hint or two, any code written by man can presumably be cracked."
http://home.uchicago.edu/~ck0/classes/nu/A01/F99/enigma-paper.html

You have to set your tolerance levels here.
Bob

Collapse -
Webcrawlers are rather lazy.

In reply to: but does it work?

Generally, they don't interpret javascript. Google, for example, doesn't, the experts told me.

But you might make this even more difficult for them by making the function more complex, like throwing in a concatenate function that constructs hotmail from "ail" and "hotm", or a 'shift' function (that you'll have to write yourself) to change 'ibm' to 'hal' (1 letter back in the alfabet, as you will remember from the movie - 2001, a space odyssey- , so 'hotmail' will be in the programs source as 'ipunbjm'). A programmer will be able to find out, a simple pattern-matching crawler won't. The sky is the limit here.

Kees

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

SMART HOME

This one tip will help you sleep better tonight

A few seconds are all you need to get a better night's rest.