Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Does email encoding on sites stop spambots?

Featured Replies

Hi All,

 

I have have been told people should hide any email addresses on their websites using javascript to stop it being harvested by a spambot.

 

I have seen loads of websites offering this service for free see here.

 

My questions are - does this technique it work? and are there any other effective alternatives?

 

Cheers!

Yes, some spam bots are smart enough to work through the encodings, so it's not failsafe. Many have moved to JavaScript to obfuscate emails because the bots don't handle JavaScript . The one drawback to this is that some users may not have JavaScript enabled. Depending on your audience, the percentage might not be that great.

I used that method for some years. It was great at first, but then I started to get a few spammy mails.. then more and more. In the end, I changed to using a PHP contact form so the actual address is never visible on the client's side.

I still find that the best method is to display your email address for all to read - full accessibility, and let gmail via a standard gmail account or via google-apps, to take care of the spam.

  • Author
I used that method for some years. It was great at first, but then I started to get a few spammy mails.. then more and more. In the end, I changed to using a PHP contact form so the actual address is never visible on the client's side.

 

 

Very good call ;) - php forms are defo the way to stop them but sometimes a form is not appropriate, so is there a way of having the mailto link but using php to conceal the address?

I think contact forms are better than mailto links. I hate clicking on a contact button only for it to open a new message in my mail app.

 

I used to think the opposite, so maybe it's an acquired taste.

 

I don't think you can have a mailto link that's totally secure. You could just have normal text that states your email - bill AT microsoft DOT com if people really don't want to use a contact form.

Duck - I wouldn't have thought so, because the site would have to pass the mailto url to the mail client. I've tried similar things in the past (eg, having a flash button for the mailto link) but the address still ended up getting spammed eventually. To keep it completely hidden basically means keeping it server-side, I think.

You could have an image with the email address, instead of text. Pretty simple solution, but it works. Only downside is you can't copy and paste it which is a bit annoying.

 

I'd go with a contact form and display your email address with an image as well.

A few options:

 

1) Web forms - best option IMHO as you make it secure and spam proof for you and the user, plus you get to help them help you by telling them what information to complete. Loads of free and very good plugins available in most languages (PHP, Perl, ASP, etc)

 

2) Just write it - but use something like me [at] mydomain [dot] com, although some spam bots are overcoming it.

 

3) Use mailto: links but ensure you've got really robust anti-spam in place. As said above use Google Apps. i do and it's brilliant. Only let me down one in a blue moon, but is easy to rectify.

 

4) Use a vcard: not an alternative, more an extension to a simple mailto. Big plus of this is the ability for the user to import all of your contact details into their contact manager, although depending on how you implement it, it suffers from the same issues as a mailto

I don't think any method is full proof as spammers get lists of registered domains and then email all sorts of crap before that domain; info@, mail@ bob@, debbie@, etc, etc.

 

I think it's important to have an email as well as a contact form as people have 'proof' of when they sent something to you, you don't get that with a contact form ('send to yourself' options aside).

 

Since swicthing off catchall and making spam assassin stricter, I'm pretty happy with the low level amount of spam I get now. I used to get tons.

  • Author

Thanks for the great responce guys!

 

I can conclude then, that the best method is the mighty form and the second best if that is not an option is to write the email out like Badmotherz suggested.

 

In regards to forms I just read this article about increasing your security when CAPTCHA is not enough.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.