Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > @ in unicode, or: Avoiding email spam

@ in unicode, or: Avoiding email spam
Thread Tools
Apfhex
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status: Offline
Reply With Quote
Jul 3, 2005, 12:46 AM
 
First of all: do you believe it is necessary to take measures to prevent bots from grabbing your email address from a web page?

Mine certainly isn't widely popular, but I got to thinking, maybe I should?

What are the methods that you would use to prevent such a thing?

I was thinking... would something as simple as replacing the @ with its unicode equivalent do the trick? I put in & # 0 0 4 0 ; (without the spaces of course) which seems to give me a left parenthesis. According to a web document and Apple's Character Pallet this should be @. FYI, I have other unicode characters on the page such as en dashes and typographer's quotes, which display fine. Document is XHTML 1.0 Strict with iso-8859-1 encoding.

Well, I'm probably wrong and this is probably just silly (though I would like to know what I have to do to get an @ in there).
Mac OS X 10.5.0, Mac Pro 2.66GHz/2 GB RAM/X1900 XT, 23" ACD
esdesign
     
Sage
Mac Elite
Join Date: Apr 2003
Location: SoCal
Status: Offline
Reply With Quote
Jul 3, 2005, 01:22 AM
 
Spam-creator-people are well aware of encoding – don't waste your time with it.

Is this for a "Contact Me" page? I have several suggestions for that:

• Use a fake email address that only a person would know what to do with: [email protected] or [email protected] or sageolson [***at**] example . com

• If you don't need to do it on one line, you can describe your email address. For example: "Okay, to assemble my email address, you take my name (sageolson), combine it with that symbol (shift+3), then add example.com to the end."

• I know of a method that can be used to allow Javascript users to circumvent the above message. I've promised the creator of this method not to mention it in public though (to keep spammers from ever learning about it), so you'll have to PM me about it.

[edit]: I was going to also mention that you could use a web form to have people email you, but I'm not sure if the spammers have caught on to that method yet (since they can already easily spam blogs through web forms).
     
Apfhex  (op)
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status: Offline
Reply With Quote
Jul 3, 2005, 01:30 AM
 
Ok. Perhaps I'll mangle it into something human-only-readable (trying to keep it relatively simple though).
Mac OS X 10.5.0, Mac Pro 2.66GHz/2 GB RAM/X1900 XT, 23" ACD
esdesign
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Jul 3, 2005, 06:43 AM
 
Probably not a good idea to describe @ as “shift+3”, since that yields # for me, and God knows what for users from various other countries...
     
Randman
Posting Junkie
Join Date: Mar 2004
Location: MacNN database error. Please refresh your browser.
Status: Offline
Reply With Quote
Jul 3, 2005, 06:48 AM
 
Originally Posted by Apfhex
First of all: do you believe it is necessary to take measures to prevent bots from grabbing your email address from a web page?

Mine certainly isn't widely popular, but I got to thinking, maybe I should?

What are the methods that you would use to prevent such a thing?
Never post your true email. I have an email address for web forums and whatnot, [email protected].

This is a computer-generated message and needs no signature.
     
parallax
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jul 3, 2005, 11:32 AM
 
Just for the record, @ is 0x0040 in hex; however, HTML escaping uses decimal (stupid of them since everyone else that deals with characters deals with them in hex). Therefore what you typed in was 0x0028 in hex which is indeed a left paren. 0x0040 is 64 in decimal, so #0064; should work.

Also ISO 8859-1 is Latin-1 encoding (I believe unicode is Latin-1 compatible though). Check out ISO-10646.

But like the above posters I wouldn't recommend doing this if you're looking to stop spam. :-)

I wouldn't recommend using JavaScript to mangle your email address either. This is overkill, and probably isn't much good for users like me that turn JavaScript off.

A much simpler solution would be to make your email an image, and make the title of the image something human parsable. For instance,

<img src="myemail.png" title="name AT domain DOT tld">

Personally, I feel that it's only a matter of time until any address gets spammed just as much as everyone else, so I concentrate on setting up appropriate spam filters rather than trying to make my address secret.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
skalie
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Jul 3, 2005, 11:48 AM
 
Originally Posted by parallax
I wouldn't recommend using JavaScript to mangle your email address either. This is overkill, and probably isn't much good for users like me that turn JavaScript off.
How many people do that btw? I just finished a website that uses javascript to detect the browser (for style sheet positioning) and resolution.

And it, er, doesn't work at all with javascript turned off in the browser.
     
madmacgames
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Jul 3, 2005, 11:54 AM
 
Originally Posted by skalie
How many people do that btw?
Not very many... Your normal web user won't even know what javascript is.

Usually just those people with what I call the "anti-javascript complex" turn it off

While I still think you should make your website work for both type of users, the number of anti-js users are in the vast minority.
The only thing necessary for evil to flourish is for good men to do nothing
- Edmund Burke
     
skalie
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Jul 3, 2005, 12:19 PM
 
So what resolution should I assume the "anti-javascript complex" types would be using? Or should I just deliver them the 800 x 600 version out of spite?
     
parallax
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jul 3, 2005, 04:31 PM
 
Serve us the mobile or text-only version. ;-)
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Sage
Mac Elite
Join Date: Apr 2003
Location: SoCal
Status: Offline
Reply With Quote
Jul 4, 2005, 05:18 PM
 
Originally Posted by Oisín
Probably not a good idea to describe @ as “shift+3”, since that yields # for me, and God knows what for users from various other countries...
Oops, yeah, shift+2.

And Apfhex, you sure you don't want method #3? By "simpler", I'm not sure if you mean simpler for yourself or simpler for the end user, but that method makes it much simpler for end-users with Javascript to access your email address (while still making it available to non-JS users and impossible for harvesters to recognize).
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Jul 6, 2005, 12:35 PM
 
Originally Posted by Sage
Oops, yeah, shift+2.
Yeah, that's " for me...

@ is Alt + ' (which is in the 'corner' between Shift and Return) for me
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 10:06 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,