Email Addresses in Web Pages


You want to give your site's visitors a way to contact you by email but don't want your emali address to be abused. Here are a few ways to protect your email address when building your website.

1. Use defined users and filters

Don't use the catch all email facility. Instead define users such as enquiry@ or sales@. It's better if you can avoid the most obvious ones like info@ as some people might speculatively try these. It's best to use a person's name which does not appear elsewhere on the site.

Most email providers or email software offer you filters to use on incoming email. You define a parameter in the email and then filter out any incoming mail which does not contain it. For example, you could set your email link as mailto:info@companyname.com?body=security%20code%20123%20 (please%20leave%20intact%20in%20message%20body) then filter out any mail which does not contain the text "security code 123". Please note that a space is replaced by "%20" ni the mailto parameter.

This will prevent email from automated systems but you could miss out on genuine mail if the sender fails to understand this measure. Be sure to explain it well on your contact page.

It is important when using filters on an address that you don't use this address to send other mail as your replies could be filtered out. Keep one address purely for email from your website.

2. Use a form

Use a form for your site's visitors to contact you. This hides the email address in the browser but it may still appear in the HTML coding. If it does yuo can get around this by defining a subject line, e.g. info@companyname.com?subject=enquiry and filtering out all incoming mail which does not have this subject line.

3. Use JavaScript for links

It is possible to write the text link in JavaScript instead of HTML. The script breaks the email address down into its elements and then puts it back together. It appears just as a normal HTML link in the browser even down to the way it appears in the browser's status bar. This method keeps everything looking as the visitor would expect but protects your address from Spam harvesters, programs designed to crawl sites and find mailto links in the code.

Copy this code replacing the 4 variables user, domain, extension and link with your own information. This example uses the made up email address info@companyname.com. It should be obvious which parts to change and to what.

[script language="JavaScript" type="text/javascript"][!--

var user = "info";
var domain = "companyname";
var extension = "com";
var link = "Email Us";

document.write('[a href="mailto:' + domain + '.' + extension + '"]'); document.write(link + '[/' + 'a]');
// --][/script]

Please note that the square brackets must be replaced with angled brackets for the script to work. The square brackets are merely to enable me to display the coding here.

Chris Smith is a full time web developer building websites for small businesses and individuals.

Please visit his site to see live examples of these techniques in action and for further information on web design and development.

Web Development | Email Links


MORE RESOURCES:
RELATED ARTICLES
Topics to Add When Creating an Alternate and Modern Medicine Web Directory
Alternate medicine finds its own place in the hearts and minds worldwide and has a separate following to back its existence. There are many subcategories that could be added to the modern and alternate medicine website directories.
4 Marketing Tips for Resourceful Webmasters!
The internet is a sea of knowledge. Getting your information to 'float' by the right audience can be like finding that one special grain of sand on the seashore.
Linking Out is Good
Many websites I come across don't have a single link to another website. Ask the webmaster why not, and the answer you get is simple enough: "If I link to other websites people might leave my site.
What Works and What not Works for Your Internet Business
"Build it and they will come."--Filed of Dreams (1989) If you are working on an Internet business, you may read a lot of information for how quickly you can make money online.
Database Driven Web Site - Do You Need It?
Many of site owners still don't realize all advantages of database driven web sites and don't use all abilities they give. So when do you need a database driven web site and how it will make your web-life better?What is a database driven web site? Database driven web site is one that uses database for collecting and storing information.
Get Your Business on the Web
I can't think of any business alive today that couldn't benefit from at least a minor presence on the web. Now that I've made that statement, I'm sure someone will point out one.
Build It and They Will Come
Build it and they will come is not always true; you have to form a relationship with the company before you will get quality attendees or participants for a free service.The key to a human's heart is through food.
9 Simple Steps to Create a Background Tiled Image Branded with Your Name
You have seen those web pages where they have the name of the Name Web repeated over over over in square tiles as the background. Now by following these 9 Simple steps you too can create a web page Branded with your Name, or Company Name.
Eight Deadly Web Site Mistakes and How to Avoid Them
Creating and maintaining an effective presence on the Web has become increasingly complex and challenging as the power of the Internet as a marketing tool becomes more and more necessary to entrepreneurs and emerging businesses.The good news is that technologies that were only available to the big guys just a couple of years ago - audio, video, ecommerce, e-mail database management applications - are now affordable for almost everybody.
Introductory PHP For Non-Programmers
When you started reading this sentence you assumed lo acabaría en inglés. However, I didn't finish in English.
Building eCommerce Websites that Work - Part 3
An interesting eCommerce success factor that isn't precisely overlooked, but which is often thought about more in terms of being a way of feeding the search engine spiders has to do with providing content. In a very real sense the customer's job is to consume.
Are Web Graphics Stealing Your Money?
They might not be wearing a mask and carrying a gun, but if you've got images on your web pages then they could be costing you a lot more money than you think every time a visitor looks at one. That's because image files are typically the biggest bandwidth user on any web page.
HTML Editors - How to Choose the Right One for Building Your Websites
There are lots of HTML editors on the market, however, you will want to look for one that has specific tools that will make building your websites easy, straightforward, and as stress-free as possible. Review the following requirements you should look for in an HTML editor.
The Web: Your Window of Opportunity
Thinking about starting up a business? The web is the way to go. Look around! More and more, people are relying on the internet as an information resource, a way to foster personal relationships, and method of purchasing goods and services.
Where's Your Web Site?
This simple question can take on several different forms, but if you have your own web site, all are equally important. Don't worry, this isn't a sales letter, and it's well worth a read.
What Hosting Companies Dont Tell You, Could Hurt You?
Did you know that hosting companies overcrowd their servers despite all the issues caused by servers running hundreds of accounts? Are you aware of what happens if your website is hosted on a server that's overcrowded? You're probably thinking to yourself, "what do you mean overcrowd their servers?" Overcrowded servers mean big money for your hosting company, but also big problems for your website.Hosting companies are willing to sacrifice the success of your website in order to build their own profit.
Are You Overlooking the Benefits of Using Sub-Domains within Your Web-hosting account?
One of the most useful features offered by some web hosting companies, is the option of creating sub-domains in the same web hosting account. The problem is, most website owners are not aware of why and how to create sub-domains.
The Number One Reason Most Websites Fail
Failure, just like success, is measured differently by each and every one of us. What one man treats as success another may view as failure.
The Secret Benefit Of Accessibility: Part 1 - Increased Usability
Web accessibility has so many benefits that I really do wonder why such a large number of websites have such diabolically bad accessibility. One of the main benefits is increased usability, which according to usability guru, Jakob Nielson, can increase the sales/conversion rate of a website by 100% and traffic by 150%.
Marketing Your Business Online
As a business you can't afford to ignore the Internet Age; in 2002 there was an estimated 605 million people online around the entire globe, today this is estimated at over a billion users worldwide.By using the Internet to market your business an entire world of potential customers are opened up for you, rather than just your local town, city, or country.