Solved

Email address on web page

Posted on 2016-11-01
4
34 Views
Last Modified: 2016-11-02
Is there any benefit to change all email address to a picture image on our website ?

Thx
0
Comment
Question by:AXISHK
4 Comments
 
LVL 17

Assisted Solution

by:Serena Hsi
Serena Hsi earned 125 total points
Comment Utility
For one, you won't get site scraped as often if your email addresses exist as images; but if you still use the image as a clickable mailto link, sadly that doesn't stop people from spamming you.. unless you can encrypt or prevent the email addresses from showing up in the web page source code.
0
 
LVL 21

Accepted Solution

by:
Kim Walker earned 250 total points
Comment Utility
That depends on how important it is for people to be able to contact you. If you use an image and leave out the required alt parameter, sight challenged visitors who use screen readers will not be able to find your email address.

If it is important for them to be able to contact you and you want to hide your email address from scrapers and robots, there are websites that will create code for you to paste into your page. Or you can just add a contact form on your page and let the server-side script send the email.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 125 total points
Comment Utility
I use email forms on all my websites so I don't have to expose email addresses to scammers.
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Obfuscating email addresses

This is how I define email addresses
<a href="" class="mail-link" data-d="derf"></a><br/>
<a href="" class="mail-link" data-d="ydnam"></a><br/>

Open in new window

JavaScript
<script src="http://code.jquery.com/jquery.js"></script>
<script>
var domain = ['somewhere','com']
$(function() {
  $('.mail-link').each(function(i, el) {
     var email = $(el).data('d').split("").reverse().join("") + '@' + domain.join('.');
     $(el).attr('href','mailto:' + email).html(email);
  });
});
</script>

Open in new window

I further obfuscate the above jQuery
Working sample here
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now