.: How To Stop Spambots Harvesting Your Email Address

By:Ric

Category:Home / Internet / Spam

It’s an unfortunate thing, but the internet certainly has its share of unscrupulous people. In my opinion, the worst amongst these are those that deploy software robots to roam the web and harvest email addresses from web pages. These addresses are then collated into huge databases and sold for the purpose of spam.



Now we all hate spam and anything that can be done to reduce it is very worthwhile. This is not rocket science and a basic knowledge of html and how to cut and paste will see you protected from the spambots. All we are going to use is a bit of javascript.



First, open Notepad or any text editor and then copy and paste the following into the file.



/* This script provides for a straightforward email address in a web page.

In your web page add the following:-

*/

function blocker(name)

{

var domain ="yourdomainname.com";

document.write('' + name + '@' + domain + '');

}



/* This script adds a subject field to the email.



function blockersubject(name,subject)

{
var domain ="yourdomainname.com";
document.write('' + name + '@' + domain + '');

}



/* This script is for using as an "Email Us" or like in a menu system or on a page.

Insert the following in your web page:-





function blocker2(name,text)

{
var domain ="yourdomainname.com";
document.write('' + text + '');

}



/* This script allows the adding of a subject, but also displayable text for a menu system. In your web page place the following:-

*/



function blockersubject2(name,subject,text)

{
var domain ="yourdomainname.com";
document.write('' + text + '');

}



//End of file.



Save the file as blocker.js in your document folders because this script can be reused over and over for as many different web pages as you like. You only need to change the variables in the script.



To get the scripts to work, there are a couple of things you need to do. I usually create a sub-directory for my javascript and actually call it that. Any javascript for the web page can be stored there. Save a copy of the file blocker.js to this directory and then edit all the variables to suit your site.



Now you need to allow the scripts to be called and the web page needs to know where they are. The easiest way to achieve this is to have the information in the section of your document. Before the closing tag, and assuming you have saved the file to a javascript sub-directory, insert the following line of code:-



(Insert less than sign)script type="text/javascript" src="javascript/common.js">(insert less than sign)/script>



You will just have to make sure that the path to the javascript sub-directory is correct for the document. This is simple if you use Dreamweaver as you can modify the template for your site and it will update all the pages. If you are using php includes, you will need to make sure that the path is correct from your header template through to the javascript directory. A little playing will usually get this sorted out for you.



One final thing that you should be aware of and that is that not everyone has javascript turned on. If a visitor hits your page and has javascript turned off then they won’t be able to see your email addresses at all. To resolve this, enter the following code just below the area where the email address is supposed to appear.



(Insert less than sign)noscript> If you are seeing this, then Javascipt is not turned on in your browser and you won’t be able to see our email addresses. They are hidden by Javascript. You can either turn your Javascript on or alternately email us at youraddress at domainname dot com (insert less than sign)/noscript>



Make sure you do not use the @ sign or put the dot in or even type the full email address properly. You will destroy all the good work you’ve done.



And there you have it. A simple piece of javascript that will prevent your email address being harvested by the nasty little bots that roam the web.

Digg del.icio.us Blink Stumble Spurl Reddit Netscape Furl

Article keywords: web, design, email, spam, spambots, html

Article Source: http://www.articles32.com

Ric Raftis runs Bushsong Web Design – Bendigo & Beyond and is also part of the team at JR Quality Web Design
Courtesy of:Best Content Articles







.: New Spam Articles

1). Phishing For Your Identity
Phishing (pronounced as fishing) is defined as the act of sending an email to a recipient falsely claiming to have an established, legitimate business. The intent of the phisher is to scam the recipient into surrendering their private information, and ultimately steal your identity.

2). How To Recognize And Prevent Pfishing Scams
The warning notice you get from your bank over the internet may be a fraud. It is a scam intended to make you give up secure financial information. This article will show you how to recognize and deal with these frauds.

3). Investment Spam is Dangerous
Learn how to identify investment spam that has costed investors millions

4). Spam is a Beast
Spam has waged war on my sanity and I am helpless to do anything about it

5). Spam, Lovely Spam, Wonderful Spam
Spam is best defined as unsolicited and unwanted commercial electronic messages or e-mails that are sent to large numbers of people. The term is also used to similar abuses in other media, like messengers and newsgroups.

6). Awareness To Phishing Is Your Best Weapon
Many people are focused on building value online by making sites that serve real purposes and help us make the most of our time and our lives, while some are trying to exploit surfers and mine away value away from those who work hard building it into there sites. This article is about the ways we have to protect our selves from this very popular scamming technique.

7). The Pornographic Nature Of Spam
There is a trend in malicious SPAM which is wreaking havoc on many computers worldwide. Find out what you can do about it.


.: Top Spam Articles

1). Seven tips for securing your organization´s network from spam and email viruses
Seven tips for securing your organization´s network from spam and email viruses Providing security against email related threats has become a burden for most IT professionals in 2006. According to a recent study by Postini, spam and email viruses now make up to 80% of all emails sent out as compared to 50% in 2000. As a result, IT professionals now face a tougher challenge in providing network security for this amount of spam.

2). Antispam Organization Out There That's Fighting For You
There's an antispam organization out there that's fighting for you and could use your help. CAUCE, the Coalition Against Unsolicited Commercial E-mail, is an all-volunteer global entity that began as SPAM-LAW, a group brought together for discussion only. They put all their efforts into getting legislation passed that would help stop and penalize spam.

3). Free Spam Blockers
Remember when spam was just another horrible thing you would never eat? And then you grew up a little and spam became the lyrics to a great Monty Python song. And now spam is something to avoid at all costs. Or, in the case of free spam blockers, at no cost at all. Everything is better when it’s free, right? Such is the case with blocking out annoying spam from your email account, too.

4). How to Reduce Spam in Your Inbox and Enhance Your Email Security
Spam is the internet’s equivalent of junk mail. Spam is defined as an e-mail message sent to people without their consent or permission. Addresses of recipients are often harvested from Usenet postings or web pages, obtained from databases, or simply guessed by using common names and domains. Spam is sent to promote practically any product or service ranging from “Adult” products to logo design for websites.

5). Spam, What is it Good for, Absolutely Nothing!
Over time, unless the growth of spam isn't stopped, it will destroy the usefulness and effectiveness of email as a communication tool.

6). How To Tighten Up Your Email Security
These days email is a necessary part of communication. However, this also means that email is one of the most popular ways for a virus to infect your computer. You need to protect yourself from the threat of fraud and infection. Viruses Email attachments often contain viruses so you need to be careful whenever you open any type of attachment even if you know the sender.

7). How to Benefit from Comment Spam
Comment spam is annoying. Here's a quick piece on how to turn the tables on the comment spammers and use their comments to your advantage instead of theirs.


Page loaded in 0.255 seconds.