Webmaster Tutorials - Web Development
Webmaster Resource Directory | Contact Us | Submit Your Site

LEARN

BUILD

PROMOTE

SELL

MANAGE

GET LISTED



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 Web Development Articles

Websites: You Get What You Pay For!
So you finally decided to invest in a web presence or upgrade your current site? There are many available choices in "web designers" to choose from. This decision is an important one! You may have a relative or friend of a friend who will do your web site at a very low cost from the comfort of their house.

Web Success Secret - Keep Your Visitors Interested
Visitors to your site come looking for information or solutions to their problems. They will remain there if they find what they are looking for.

Web Site Promotion: How To Advertise Your Website For Profits
Making money with your web site is the dream and goal of millions of webmasters all over the internet including myself. In order to reach this goal you need a variety of web site promotions running all at the same time.

I Want To Be A Freelancer
So you have decided that you want to do freelance work. You have done your homework and have developed your skills in HTML, PHP, CMS, and a slew of other applications.

1 Simple Solution to All Internet Marketers about Their Website Design Needs
It is an undeniable fact that not everybody is keen and knowledgeable to create an above average looking website. It is also true that it is something learnable, but it might take a certain learning time span in order to grasp the minimum ability to create an over than average website.

How to Promote Your Law Firm Website On the Internet for Maximum Profit
Making maximum profit from your law firm website is important, but as a lawyer you might not have any clue about search engine optimization and Internet marketing for your legal site. However, it is not so difficult to poise your website to be successful online even if you are not experienced with Internet marketing and driving website traffic.

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.

Why A Simple Counter is Never Enough for Your Website
A simple website stats counter is not enough if you are really interested in finding out information about your traffic. Certainly, a simple web counter will tell you how many people have visited your site, but that is it.

How to Get a Better Web Site ROI
Better Web Site ROIHow to increase your business profitability by hundreds of percentWebsites are ubiquitous these days and everybody is trying to get a better web site ROI. With millions upon millions of sites all trying to appeal to the same traffic, what can you do to improve your web site ROI?What's In A NameYou can use Google Adwords to very quickly and cost effectively improve your business profitability by a significant amount - hundreds possibly thousands of percent.

Nonsense! Why Do I Need a Website?
"I don't sell anything online, I don't advertise online, in fact I don't really even know how to use a computer..




Helpful Tools

NetDownload
freeware and software downloads

Findahost
web hosting directory

FindaTechJob
new computer jobs daily

ManagedHostingPro
Managed Hosting and Colocation

Free Movies



© 2007 webmasteredge.com