albablue89 — 2012-03-28T15:49:25-04:00 — #1
Now, I guess I have options here to either go with the flow, do what she wants in the best way I can, or I try to explain the contact form is for a legit reason.
var username = "username"; <br>
var hostname = "yourdomain.com"; <br>
var linktext = username + "@" + hostname; <br>
document.write("<a href=" + "mail" + "to:" + username + <br>
"@" + hostname + ">" + linktext + "</a>") <br>
Is this advised or what?
stevie_d — 2012-03-28T16:07:51-04:00 — #2
While the contact form may be there for a legitimate reason (ie preventing spam), that doesn't mean that it's the most user-friendly method. I would generally recommend providing the option to use either a contact form (allows people to choose the email address they want you to reply to) or an email link (people often have more confidence in an email than a contact form, it means they have a record for themselves of what they sent, and you don't have to worry about eejits who mistype their own email address (and yes, a lot do!)).
An easier way, which I have had reasonable success with, is to simply replace the @ with @ (in both the link text and the mailto address) – it comes out as the same, the link still works the same, but it does seem to be reasonably effective at disguising it from spambots. (I would still suggest putting a different email address there, which you can discard if it does start to pick up intolerable amounts of spam).
technobear — 2012-03-28T16:13:28-04:00 — #3
I use a similar approach, and run the e-mail address through this encoder. It seems to work pretty well at stopping spam, although I also do as Stevie D suggests and use a disposable e-mail address, just in case. (So far, I've not needed to change one. :x )
albablue89 — 2012-03-29T06:28:27-04:00 — #4
Nice... Very niffty indeeed and fair points made.
I actually seen your @ trick in another thread, shortly after posting this thread. I think it's a good call, and I also like the look of the encoder to add some extra spice to it all. So, I'll go with using ascii characters and symbols on a different email address that I can alias as I normally would.
technobear — 2012-03-29T07:04:00-04:00 — #5
Another Chuggington fan? I knew you were one of the good guys. :lol: [/ot]
albablue89 — 2012-03-29T08:39:36-04:00 — #6
Haha!!! Nothing like a bit of Story Time :)[/ot]