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.
|
|
|
Created & Maintained by Empower! CMS Web Sites
Host2Sell Web Hosting | Emarketing Workshops | Site SEO Review | FREE NewsletterWeb Accessibility Myths
With more and more countries around the world passing laws about blind and disabled access to the Internet (including the Disability Discrimination Act in the UK), web accessibility has been thrown into the spotlight of the online community. This article attempt to put a stop to the misinformation that has been thrown around and tell you the truth behind web accessibility.1. Creating a text-only equivalent is suffi...(related: Web Development)
Selecting A Web Content Management Product
So you want to take a look at a real Web Content Management (WCM) product. How do you go about evaluating all the different products and vendors? What should you be looking for in a WCM package? Is it better to build your own, buy or use Open Source?The best way to answer this question is to compare the products on an apples to apples basis. You can do this objectively by building a product evaluation matrix based upon your specific needs. The first column can list out the functionality categories...(related: Web Development)
Html Editors 101 - Smaller Is Better
SiteSpinnerSiteSpinner is a user-friendly web site development tool that includes many advanced features such as drag-and-drop positioning, built in FTP to publish directly to your ...(related: Web Development)
Web Coach Tip: What You Should Know About Diy Web Sites
Recently, a friend asked "What's the deal with those DIY companies that advertise "How to get a website with everything your business needs for under $20 bucks a month?". "How can they do that?" she said."First impressions are very deceiving!" I told her...let me share my past experience with you!First of all... folks get excited by the low price-don't do their due dilligence and end up with buyers remorse when they get their credit card statement.And for many reasons.One, all that company is doing is creating cookie-cutter websites to niave, misguided folks who are impr...(related: Web Development)
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.Web design companies have a lot of control over their clients. I refer to this as "False Power". The sad reality is that most of their clients don't even know they are stuck in this potentially painful predicament. This power is usually exercised when a client of a web design company finds a better deal on hosting for their web site and they simply want to switch their hosting provider, or when the "client" wants to upgrade t...(related: Web Development)
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 filtersDon't use the catch all email facility. Instead define users such as enquiry@ or sales@. It's better if you can avoid t...(related: Web Development)
5 Sure Fire Ways To Send Visitors Away For Good
So your traffic is going through the roof yeah? It's all becoming a bit too much? You're getting lots of sales enquiries through your website every day? You want to send visitors away from your site for ...(related: Web Development)
Setting Up A Cgi Script On Your Web Site
Before you set up any scripts you will need some information about your server. You can get this by e-mailing your web hosting provider. It's good to have these on hand before you try to set up a script. You may not need all of the information for each script, but some of the larger scripts demand more information to work. The information you may need is:Path To ...(related: Web Development)
Effectively Using Robots Meta Tags
The "robots" meta tag, when used properly, will tell the search engine spiders whether or not to index and follow a particular page. For the purposes of this article, we will be using the "( )" symbols to represent the "< >" in html coding.Some examples of robot usage are as follows:(meta name="robots" content="index,follow")(meta name...(related: Web Development)
Web Development Processes And Technical Environments
The process of Web application development is critical to the success of web-based projects. The proper processes can not be enforced unless technical environments are properly setup. Technical environments are required for development, test and production.Web applications architecture ( http://www.sysoptima.net/architecture/technical_architecture.php ) is typically in 3-tiers. Applications are developed on NT platforms, and deployed to production on UNIX platforms. Without streamlined procedures and proper environment settings, depl...(related: Web Development)
Tips To Protect Your Downloads Or Products
1. Upload robots.txt file in to your root directory and include the folder name where you set your downloads.More information on how to set robots.txt: site-map - Copyright © 2006 Empower! Web Design | All Rights Reserved. | Web Development
