Harmony Hollow Software

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

Add to these social bookmarking sites:

Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Folkd Add to: Yigg Add to: Linkarena Add to: Digg Add to: Del.icio.us Add to: Reddit Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Spurl Add to: Google Add to: Blinklist Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Information

MORE RESOURCES:

Kentico CMS Names Web Development Company, Bayshore Solutions, a Gold ...
PR Web (press release)
Website development company, Bayshore Solutions, has recently reached Certified Partner Level with Kentico CMS (Content Management System). Development team members recently passed the Kentico Developer Exam achieving Kentico CMS Certified ...

and more »


New York Animation Studios FlickerLab Announces Strategic Partnership with ...
Newsday
Established in 1994 as Accurate Imaging, Inc., AIMG is now a global Marketing, Web Development, Search Engine Optimization (SEO) and Small Business Development agency with offices in Clifton, New Jersey, Lake Success, New York, and Charlotte, ...

and more »


Google preps Dart 1.0 to challenge JavaScript
InfoWorld
Get the first word on what the important tech news really means with the InfoWorld Tech Watch blog. For the latest business technology news, follow InfoWorld.com on Twitter. Tags: Web Development, Java Programming, JavaScript, Web Browsers, Google, ...



San Francisco Chronicle

352 Media Group Named Fourth Best Web Development Company by ...
San Francisco Chronicle
The independent authority on web design and development, bestwebdesignagencies.com, has released their list of the thirty web development companies citing 352 Media Group as the fourth best web development company for May 2013. Each month the ...
Adlava Named Fifth Best Web Design Company by bestwebdesignagencies ...PR Web (press release)

all 2 news articles »


Long Awaited Web Development Toolkit Demo Released By ARME Realty.com
PR Web (press release)
Brokers all over the country have been salivating over the release of a demonstration of the ARME Realty.com real estate SEO web development toolkit, states ARME Realty.com. This demonstration finally provides a hands on of their high powered web ...



Real Estate SEO Web Development Toolkit Shows Promise For Future of Web ...
PR Web (press release)
"Our proprietary web development technology is able to produce quality, relevant content for any property type in any city, state, or zip code. By constantly creating fresh, relevant content covering every property type keyword in any desired range of ...



Chicago Web Development Firm Adage Technologies Launches Enhanced ...
PR Web (press release)
Adage Technologies, a leading website and application development firm, announced today the release of a new mobile website for patrons of the Boston Symphony Orchestra, an ensemble currently in its 132nd season. The revamped website can be found ...



Microsoft WebMatrix 3 Web Development Tool Comes With Deeper Windows ...
TechCrunch
Microsoft has released WebMatrix 3, the latest version of its free web development tool. The new version now comes with deeper Windows Azure integration and support for GitHub. WebMatrix users can now sign in through Windows Azure and create up to 10 ...

and more »


Net@Work Named Third Best Web Development Company by ...
PR Web (press release)
The independent authority on web design and development, bestwebdesignagencies.com, has named Net@Work the third best web development company for May 2013. Share on Twitter Share on Facebook Share on Google+ Share on LinkedIn Email a ...

and more »


Microsoft delivers updated WebMatrix Web-development toolset
ZDNet
... ZDNet Japan · ZDNet Netherlands. Topics. Enterprise Software · M2M · BlackBerry · BYOD · Tablets · CXO · Windows 8 · Cloud · All Writers. Log In. Log In · Join ZDNet. Must Read: No niche for iPad: Why I returned mine. Topic: Web development. Follow ...



Notice: Undefined index: TITLE in /var/www/vhosts/harmonyhollow.net/httpdocs/webmaster-resources/web-development/inc/rss.inc on line 103
Google News

Home | Site Map
© 2006