Web Development Information |
|
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:[email protected]?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. [email protected]?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 [email protected]. It should be obvious which parts to change and to what.
[script language="JavaScript" type="text/javascript"][!-- var user = "info"; document.write('[a href="mailto:' + domain + '.' + extension + '"]');
document.write(link + '[/' + 'a]'); 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.
|
RELATED ARTICLES
Improve Conversion Rates ? Load Times Your site is getting traffic, but conversion rates are horrible. Everything seems to be working, so what's wrong? Your site may simply be to slow. Abandonment - Why Visitors Don?t Turn Into Customers Every good Internet business understands the value of conversions versus hits received. Far too often, businesses become fixated on the hits they are receiving instead of monitoring their hit to sale conversion rate. This misguided focus is the road to ruin because it fails to take in the issue of abandonment. How To Keep Your Website Sticky Developing a website with content that entices visitors to return over and over again is something that takes time and effort to put together. This checklist can give you a great start on creating a popular website that entices readers to hang around on your site. Set Up Your Website in Minutes ? For Free There was a time not long ago when setting up a website meant endless technical jargons, hiring a web designer, writing the html or jawa codes, selecting the right hosting platform and deciding on the band width. 3 Reasons Why You Need URL Rewriting Module To Enchance Your Web URL rewriting are major needs for your sites that produce a dynamic pages like PHP pages with redirection pages inside your index page. Whats Your Business Online Attitude? This article was prompted by some customer support work I was involved in for a private members site. One of the paid subscription members wanted someone to look over his website and give an opinion of what we thought of its design. 10 Simple Steps: Its Magic If You can E-Mail You can Update Your Web Page Dynamically Dynamically Update Your Web Pages Via E-Mail Bring Your Visitors Back Clamoring for More! Maintain and Improve Your Web Site Weekly - Part 1 80% of your Web site is Maintenance! Are You Being Scammed By Your Web Design Company? This is a growing concern amongst many business owners. Does your web design company own you? This may be possible if you've allowed them to host your web site for you and also register your domain name for your company. Ever Wondered What Challenges Other People With Their Web Site? Have you ever wondered what challenges are faced by other webmasters and owners in the design and promotion of their websites, well I certainly have and so I decided to try and find out. Beyond Web Usability: Web Credibility If you've been developing websites on Mars for the past few years then you'll be forgiven for not knowing about web usability. You'll still be creating splash intro pages, having pages with massive download times and using more images than you can shake a stick at. Well, back in Earth these days have long gone and today web usability rules the web development world. For those of you who have been on Mars please read some of the things that Jakob Nielson has to say at http://www.useit.com/alertbox and try to catch up. Now You Have a Web Site - Have You Ever Heard of Accessibility? An accessible Web site is easily approached, easily understood, and useable for all. There are accessibility standards set forth by the World Wide Web Consortium, which all sites should adhere to as much as possible. Flash Deadly Sins (That Can Kill Your Web Business) Looks like every client wants a Flash site these days but the reality is...as flashy as these sites may look, there are many negatives you may want to consider before delving into Flash. Better Web Site ROI: Efficient Online Business with SEO, PPC, Split Testing, and Forums If you're looking for better web site ROI, chances are, the web is only one part of your business, you have a specific budget for your web site, and you want the site to not only carry its own weight, but why can't it make you some extra dough, too? WYSIWYG Versus Coding: HTML With A Purpose After years of working with entrepreneurs who developed their first web site using an image-based editor, the new world of internet marketing has placed a stronger emphasis on web development that conforms to technical concerns such as search engine optimization and multi-browser compatibility. Profitable Websites for Exclusive Industries In the region where my company is located, South Bend, Indiana, the demand for web design and associated services could be described as: leery. It's not that the locale is horribly lacking evolvement technologically; rather that so many proprietors in this area are very uncertain as to what the internet can do and how they can go about forming profitable web sites for their exclusive industries. Are You Losing Sales Because of These 4 Simple Website Mistakes? Losing website sales and traffic is sometimes simply a case of web usablity - your website just isn't clear to your visitors. By fixing these simple mistakes, you'll easily increase your conversion rate and make more online sales. The Birth of a Professional Web Site The Internet has opened a whole New World of opportunity for all of us. With the vast amount of information available at your fingertips, it has never been easier to communicate your message to the world. 7 Questions to Understand Your Customer Better Customer service questionnaires can help your clients better understand their requirements. Your clients can benefit by: Conceptualize, Build and Publish a Web site Conceptualize, Build and Publish a Web site - What's required to get started |
home | site map |
© 2005 |