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: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"; 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.
MORE RESOURCES: Unable to open RSS Feed $XMLfilename with error HTTP ERROR: 404, exiting |
RELATED ARTICLES
Your Biggest Mistake When You Create a Website? --------------------------------Why Should You Create a website?--------------------------------A. What do you want when you create a website?B. Track Your Visitors, Using PHP There are many different traffic analysis tools, ranging from simple counters to complete traffic analyzers. Although there are some free ones, most of them come with a price tag. The Power Of CPanel cPanel is a control panel for your website and allows you to set up and manage your web account through a graphical interface instead of having to use command line. This means that you can make changes to your website without having to learn to use a command line environment. Why Is No-one Buying From My Website? Are you, like many other website owners, frustrated at the amount of time, effort and money you've put into your website, only to see few or no sales?Like most business owners, you probably know your products or services inside out; you know the benefits of them, and what they can give to other businesses or consumers. And you probably paid good money for a website to promote them. Website Success is Key The popular search engine Google indexes over 8 billion websites. Is one of them yours, or is your website just floating around in cyberspace and you're hoping your customers will just find you? Is your website a benefit to your organization or company? Is it just an expensive showpiece or is it of true value?These are some of the many questions that can be asked when launching a new website. 10 Tips For A Successful Website Have you ever thought the secret behind the success of most of the famous sites. Do you ask yourself these questions. Maintaining Your Business Website QUESTION: Should I build and maintain my business Web site myself or pay someone else to do the work for me? -- Wesley L.ANSWER:When you say, pay someone else to do the work for you, Wesley, I am going to assume that you are talking about hiring a professional Web site designer to do the work and not your next-door neighbor's teenage son. Tips to Protect Your Downloads or Products 1. Upload robots. 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. Preventing Repeat Form Submission Using PHP Sessions We've all seen those messages on some websites warning not to click a button more than once or negative consequences, like paying a bill twice, may result. Sometimes we can cause these problems by hitting the back or refresh buttons. 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. Building a Web Site Requires the Right Software to Eliminate Headaches and Keep Money in Your Pocket When most people build a web site, they think one simple thing. "If I build it, they will come". How To Convert More Sales On Your Website One of the biggest mistakes that most online retailers make is they do not take into account typical buyer behaviour. The conversion from real world to online provides many benefits to the retailer, but present some real challenges for the customer because their buying decision is made more difficult in an online environment. Web Sites - Should I Learn or not? A common dilemma most small and medium businesses face when coming to their web site is if they should take the time to learn how to build a web site or not? Here's my honest thoughts on this topic.If you read my previous article you would know that a web page is fundamentally written in HTML (let's leave the dynamic stuff out for now). Planning Your Website for Success Most people know they need a website in order to publicise and promote their business but very few people know what they want in their website. Fewer still are those who can actually sit down and plan their websites well. The Importance of Website Stats to You One of the best tools you have as a webmaster is your website statistics. The most popular site stats programs are Awstats, Webalizer, and Analog. You Dont Know Which One I still remember it very clear .. Functions and Subroutines in ASP Functions and Subroutines in ASP If you read our Tutorial on Include Files (SSI) then you learned how to encapsulate ASP code within include files and the benefits it brings us. As developers, we should endeavour to make our lives easier wherever possible. 50 Ways To Use Your Website A website is the most versatile and cost-effective marketing tool on the market. It is also an investment. 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 good? Just follow these five Sure Fire Ways and your site will be a tumbleweed ghost town in no time.Way No. |
home | site map | contact us |