Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/a26f9f83/public_html/articles/includes/config.php on line 159
Email Addresses in Web Pages > NetSparsh - Viral Content you Love & Share

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

In The News:

This RSS feed URL is deprecated, please update. New URLs can be found in the footers at https://news.google.com/news

Web Developer - Marketing
Built In Chicago
Sprout Social is looking for an experienced Web Engineer to join the team that creates and maintains our web properties and marketing campaigns. Our Marketing Development team is a small, highly collaborative group that loves to experiment. As a member ...


Android Authority (blog)

7 web development kits for less than the price of 1
Android Authority (blog)
That's the price that The Complete PHP & MySQL Web Development Bundle has been slashed to this week. This combination of seven online training kits and 44 hours of expert instruction is enough to take you from an absolute noob to web dev guru by the ...


TechRadar

Best web development tools of 2018
TechRadar
Traditionally, when we think of web development, we picture some coder typing furiously on a keyboard into the wee hours of the night while slurping coffee, sitting in a dark basement next to the flashing LEDs and whirring hard drives of a stack of ...


TNW

Keep users in the heart of web development with this UI/UX Design training — and name your price
TNW
We all know how important site architecture and usability is to a website's eventual success or failure. While the actual mechanics of site building are usually front and center in web development, it's surprising how seldom a user's feelings about a ...


Learn Website Development Using Your GI Bill … In 14 Weeks!
ClearanceJobs (blog)
To learn full-stack web development in 14 weeks means the program is intense – up to 14-hour days, six days a week. An optional internship program extends the course to 32 weeks and gives the student more real-world coding experience which looks good ...


Junior Web Developer — WoodsCamp
Huddle Today
Collaborate with other Woodscamp technical staff to tackle large scale web development projects. Design and develop internal development tools. Write documentation on technical products and procedures. Write unit tests for new and existing technical ...


mediabistro.com

Web Developer
mediabistro.com
The Web Developer will be responsible for front-end web development of The Arc's existing and new websites. He/she will play a project management role on any complex web development projects that require the support of outsourced designers and ...


Full Stack Web Developer at Valispace
EU-Startups (press release) (blog)
At Valispace we accelerate the path to the future: Do you want to see Mars colonies, underwater data centres and self-flying taxis come to life soon? Valispace is a collaborative engineering software that enables hardware engineers to build the ...


SDTimes.com

Industry Spotlight: Web development tools, frameworks evolve quickly
SDTimes.com
Changes in technology have led to changes in how web applications are created. And that has caused some consternation among web developers. A decade ago, the development choice was to use .NET or Java, which meant WPF or ASP.NET for Microsoft ...

and more »

Neowin

Pay What You Want or beat the average for this Full Stack Web Development Bundle
Neowin
Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can Pay What You Want for the Full Stack Web Development Bundle. The world's best developers are Full Stack developers. Here's 122+ hours of ...

Google News

The Importance of Website Stats to You

One of the best tools you have as a webmaster... Read More

CPanel Fantastico - Features and Benefits

Fantastico is a 3rd-party cPanel add-on and can be purchased... Read More

Freelance Programming is Easy to Manage

There are several reverse bid freelance sites out there. Beyond... Read More

Things to Consider Before Starting a Website

In the time that I have been using the Internet,... Read More

Dreamweaver 8 Preview

August 8 2005, Macromedia announced a release of Studio 8.... Read More

A Network Of Web Sites Is Not Enough!

The big thing these days is your ability to capture... Read More

Effective Webdesign

D.zigns dzignerwebs The Basics Before starting on... Read More

FREE Amber Alert Tickers for Your Website

Project Safekids provides webmasters a valuable tool which could save... Read More

17 Tips to Plan a Website

Everyone wants one.Everyone wishes they knew how to make one.SOME... Read More

Websites: You Get What You Pay For!

So you finally decided to invest in a web presence... Read More

7 Killer Ways To Increase Your Online Sales

Every online entrepreneur I talk to is asking the same... Read More

A Beginners Guide to Server Side Includes

An Introduction to Server Side IncludesBeginner? That's OK!While much has... Read More

Why Do I Need A Web Site?

Even though the Internet has been around for a long... Read More

Nonsense! Why Do I Need a Website?

"I don't sell anything online, I don't advertise online, in... Read More

The Secret Benefit Of Accessibility: Part 2 - A Higher Search Engine Ranking

An additional benefit of website accessibility is an improved performance... Read More

Sticking To Your Plan

So you have a good idea for a business and... Read More

7 Reasons YOU Need a Website

1) A marketing necessityI still hear it said from time... Read More

The Topic Of Your Website

The first thing you will have to deal building your... Read More

CSS - Maximum Benefits

What is CSS?CSS is a simple file which controls the... Read More

Does Your Business Really Need A Website?

Website, website, website, everyone says you need one. But do... Read More

The Power Is In The Pipes: How To Get Maximum Leverage From Your Website

What is the most important part of your online business?Many... Read More

Ten Ways NOT to Set Up a Website-based Service Business

1. As the first step, "Hire a web designer."First create... Read More

The Internet Road Map

1) Data CaptureOne easy way to collect e-mail addresses and... Read More

How to Make Your Own Free Website in 8.5 Minutes or Less

Designing and creating your own website does not have to... Read More

What Business Owners MUST Know BEFORE They Commit To Having A Web Site

Q1.Why would I need a web site? A1.- Improve my... Read More