Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sir42

macrumors 6502
Original poster
Sep 16, 2003
446
20
NY, NY
I recently purchased a domain for my new business and I'm creating a website for the business using iWeb. I want to post mailto: links on my website using the iWeb inspector so that potential clients can email me. However, I'm worried about those mailto: links being picked up by email crawlers and having my new email address overrun with spam. Is that a legitiamte concern? If so, what can I do to protect my mailto links from being picked up by crawlers?

thanks!
 
Something else just occurred to me. I know a lot of people use web based email programs and thus a mailto: email on my website would be useless for them. Is there a way to safely list my email address on the website in a way that won't be harvested by email crawlers?
 
Something else just occurred to me. I know a lot of people use web based email programs and thus a mailto: email on my website would be useless for them. Is there a way to safely list my email address on the website in a way that won't be harvested by email crawlers?

Generally people use somewhat cryptic versions, like "name [AT] company [DOT] com." There's also JavaScript options, but they completely fail for legitimate visitors who have JavaScript turned off. You could also use an image of your email, but this breaks for blind visitors, and thus usability.

What I use is a form on my site that people fill out and PHP on the back end sends me the email. This completely hides your email address and still lets people contact you.

But really, nothing will help completely. They'll eventually get your email address so it's left to your spam blockers to take care of things. What it comes down to is, the web is not for the anonymous.
 
What I use is a form on my site that people fill out and PHP on the back end sends me the email. This completely hides your email address and still lets people contact you..

I was thinking that may be the way to go. What's the best way to integrate a form into my iWeb site?
 
You can put your email address on your web site as a graphic that looks just like text. That might slow the crawlers down a bit.
 
i heard that using a form that sends the results to your email is terrible but theres a great fix that was popularized by Steve Gibson. You add a hidden field called email, or name, or subject, then get the software that turns the form submission into email to ignore any email with those fields filled in. humans can't see them so they don't fill them. bots do.
 
i heard that using a form that sends the results to your email is terrible but theres a great fix that was popularized by Steve Gibson. You add a hidden field called email, or name, or subject, then get the software that turns the form submission into email to ignore any email with those fields filled in. humans can't see them so they don't fill them. bots do.

Yes, there are a number of solutions to keep scripts from sending spam in the form. Image CAPTCHA is popular, I use text CAPTCHA myself. Though of course none of them are perfect as a person can still send you spam on their own, but these other techniques will certainly reduce the number by a lot. I get none on mine.

P.S. I don't use iWeb so don't know how you would setup a PHP contact form.
 
I just found this code for a contact form. I noticed that I have to enter my email address into this code. Will it be sufficient to keep web crawlers away?


<form action="mailto:youremail@yourdomain.com?subject=New Contact" method="post" enctype="text/plain">
<table><tr><td>
First Name: <INPUT NAME="First Name" TYPE="text" VALUE="First Name" SIZE=20><BR>
Last Name: <INPUT NAME="Last Name" TYPE="text" VALUE="Last Name" SIZE=20><BR>
Email: <INPUT NAME="Email" TYPE="text" VALUE="Email" SIZE=20><BR>
Submit: <INPUT NAME="Submit" TYPE="submit" VALUE="Submit">

</td></tr>
<tr><td align=center>
<INPUT TYPE="submit" value="submit" style="color: #ffffff; background-color: #000000">
</td></tr></table>
</FORM>
 
I just found this code for a contact form. I noticed that I have to enter my email address into this code. Will it be sufficient to keep web crawlers away?


<form action="mailto:youremail@yourdomain.com?subject=New Contact" method="post" enctype="text/plain">
<table><tr><td>
First Name: <INPUT NAME="First Name" TYPE="text" VALUE="First Name" SIZE=20><BR>
Last Name: <INPUT NAME="Last Name" TYPE="text" VALUE="Last Name" SIZE=20><BR>
Email: <INPUT NAME="Email" TYPE="text" VALUE="Email" SIZE=20><BR>
Submit: <INPUT NAME="Submit" TYPE="submit" VALUE="Submit">

</td></tr>
<tr><td align=center>
<INPUT TYPE="submit" value="submit" style="color: #ffffff; background-color: #000000">
</td></tr></table>
</FORM>

It would keep more away, but web crawler scripts could easily be written to handle this situation as well. I'd combine a few techniques for best results, like using this along with the above linked method of using a text to ascii conversion on some of the code (i.e., just convert the email part of the action attribute). Still not 100%, but closer. The form submission technique is the best I've seen, but still has problems.

Depending on the size of your site and its popularity this should be good enough. Sites like MySpace and Google have the hard time because people are writing scripts just for their sites, whereas very few script kiddies will likely write a script to crawl one specific smaller site. Thankfully. :cool:
 
Brilliant, thank you. I'll go ahead and use the form with the ascii conversion (when I figure that bit out).

One more question, is there a slightly better code for the form that I can use? I don't need anything fancy, but I noticed on this code that the form doesn't even include a message section.
 
Brilliant, thank you. I'll go ahead and use the form with the ascii conversion (when I figure that bit out).

One more question, is there a slightly better code for the form that I can use? I don't need anything fancy, but I noticed on this code that the form doesn't even include a message section.

Yeah, that code looks like it's for subscribing to a newsletter. Here's a slimmed down version of my form on my site that includes name, email, subject, and message.

HTML:
<form action="mailto:youremail@yourdomain.com?subject=Your Subject" method="post" enctype="text/plain">
<p><label for="name">Name: </label>
<input id="name" name="name" type="text" /></p>
<p><label for="emailAddy">Email: </label>
<input id="emailAddy" name="emailAddy" type="text" /></p>
<p><label for="subject">Subject: </label>
<input id="subject" name="subject" type="text" /></p>
<p><label for="msg">Message: </label>
<textarea id="msg" name="msg" cols="45" rows="7"></textarea></p>
<p><input id="submit" name="submit"
 type="submit" value="Send Feedback" /></p>
</form>

You can also use list items (li) rather than paragraphs and style them with CSS in whatever way you like.
 
I fairly easy-to-use PHP contact form script will do want you want. Keeps away the crawlers and keeps your address safe. I don't get any spam because of it, whereas when I used to have my email address on our site, I got a TON of spam.
 

Amen to that.... Whatever method you use, it's never going to be 100% spam-proof, but obfuscation reduces the chances of a 'bot collecting the address by a significant amount. There's a number of online sites offering the service - even a Dashboard widget (called 'The Obfuscator' I don't have a URL, but google will probably turn it up). Stick to the HTML obfuscation, though - that way you don't exclude people who have javascript turned off.

As another poster mentioned, a php response form is also a good option, but one that tends to put some people off. I personally use a mixture of both methods on most sites I design, and have few spam-related problems on these addresses.
 
I just downloaded The Obfuscator widget from the Apple website and it easily turned my email into a bunch of funky characters.

I went ahead and pasted those funky characters into an HTML Snippet box in iWeb and my email address was displayed in the page I was working on.

One quick question though, what code would I have to add to the HTML Snippet box to adjust the font of the email address that is displayed? I'd like to have it match the rest of the page. I'm using Futura (Medium) 14 pt.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.