Tell me more ×
SmugMug Stack Exchange is a question and answer site for SmugMug developers and end users. It's 100% free, no registration required.

I'd like to be able to add my email address in various places on my site, but I don't want to be subject to spam-bots and such. What's the best way to put my email address on my SmugMug site to accomplish this?

share|improve this question

6 Answers

I prefer the simple challenge to retrieve the email. This keeps bots and spiders away, but makes it simple for humans. I use the free service tinymailto.com. Simply fill out the form, copy the html code, and paste it on your Smugmug page. You can simply paste it into the 'Bio' box on the front page:

enter image description here

Here is how it works for the user:

The 'email' will look like this on your Smugmug site: (see in RED)

enter image description here

When the user clicks on the link, it launches this website, where there is Captia challenge:

enter image description here

And after they enter the challenge correctly, the email is provided. They have both the email and a link to launch their email program:

enter image description here

share|improve this answer

I'm an empirical kinda guy, so if I were going to try to embed my email address on the web without getting spam, I'd test a variety of methods.

Luckily, someone has already done that for us and published the results. :)

http://techblog.tilllate.com/2008/07/20/ten-methods-to-obfuscate-e-mail-addresses-compared/

I believe you can do all 3 of the absolutely-no-spam-whatsoever approaches using SmugMug, but if I'm wrong, we'd be happy to help remedy that somehow.

share|improve this answer
We should add the displaynone class to our core css, so everyone doesn't have to do it in their own. That would also allow Basic accounts to do that one. – cabbey Feb 13 '12 at 3:08

You can include an image that contains the email address. This was it's easy for humans to read it and hard on robots.

share|improve this answer
+1 for simplicity. The only downside is that the viewer can't highlight and copy the email address - they have to retype it. – jfriend00 Feb 11 '12 at 16:59

Here's a fairly simple solution using javascript. Since no SPAM bots I've ever heard of actually run the javascript in your page and look at the resulting page, they don't know what the JS actually puts in the page - only what the raw HTML contains. So, if you insert your email address using javascript, the bots are blind to it.

Wherever you want the email address to go in your page, you put this inline in your HTML page:

<script type="text/javascript">
(function() {
    var s = "jfriend";
    s += "@";
    s += "somewhere." + "com";
    document.write(s);
})();
</script>

You can see an example here: http://jsfiddle.net/jfriend00/Uj97r/

Or, if you prefer a function version that doesn't use document.write() or you want to insert the email address in an existing piece of HTML that you can't change, you can do it like this:

// put this utility in one of your included .js files
function insertEmail(id, first, mid, last) {
    var item = document.getElementById(id);
    if (item) {
        item.innerHTML = first + "@" + mid + "." + last;
    }
}

// put this at the end of the body (after all HTML has loaded)
insertEmail("myEmail", "jfriend", "somewhere", "com");

And, you can see an example of this here: http://jsfiddle.net/jfriend00/peVRP/

The email address is broken up into pieces in both functions so that a straight text scan of the page doesn't see anything that looks like an email address (how most bots do their harvesting).

These solutions have the advantage that the email address ends up in the final visible page as text so it can be copied to the clipboard by the user for use in their email client. You can also put it into a mailto: link if you desire, though mailto: doesn't work with most web-based mail services so it can't be relied upon.

share|improve this answer

I would recommend using a contact form rather than using an image or showing your email address. There are services such as wufoo (http://wufoo.com/) that allow for the easy creation of online forms to do this task. If you have a blog, there are often tools such as Secure Contact Form (http://www.fastsecurecontactform.com/) for Wordpress that offers the same feature. I then create a link to the corresponding form in my Smugmug site, for me it was easiest to use the easy customizer to insert a custom header that has the link to my contact form.

share|improve this answer
SmugMug already has a built-in contact form, what I really want to be able to do is list my email address in a way that won't subject me to spammers, if possible. – Andy Williams Feb 11 '12 at 16:10
@AndyWilliams - Smugmug's builtin contact form only works for pro users so this answer seems like a legit suggestion for how to allow non-pro users to contact you without subjecting yourself to SPAM. Maybe you don't want to use this option, but it seems like a legit answer and suggestion for others to consider. – jfriend00 Feb 11 '12 at 17:01
@jfriend00 yup you are right- but I still want some good instructions for adding an email address (which is what the question asks). – Andy Williams Feb 11 '12 at 17:08

I use a low-tech solution: I create temporary email addresses that I change once the addresses are picked up by spammers. I end up only needing to change the email address on my pages about once a year.

For example:

foo-1@example.com is the address on my pages and it goes it my inbox.

foo-1@example.com gets picked up by spammers, so I switch the address to foo-2@example.com and filter foo-1@example.com to a spammy folder that I look at infrequently.

Of course, this works on smugmug and any other web page, and is easiest if you own your domain.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.