Stopping
Email Address Harvesters
[ go back ]
Email harvester programs scan web pages looking for mailto: tags. They then collect those addresses so that spammers can send you tons of email you don't want. Two scripts are available to you below. Option 1 places a button on your page that the user can click to send mail and Option 2 places a text link on your page instead of a button. These scripts build the mailto tag only when the button or link is clicked. The raw code has nothing that a harvester can use. The working button and link is below the sample code so you can see how it works.
Option 1
<SCRIPT LANGUAGE="javascript">
<!--
var Domain = "rapidsystem.net"
var Mailme = "mail" + "to:" + "fakeuser@" + Domain
document.write("<FORM>");
document.write("<INPUT TYPE=\"submit\" VALUE=\"Email Sales\" ");
document.write("onClick=\"parent.location=Mailme\"> ");
document.write("</FORM>");
// -->
</SCRIPT>
Copy and paste the code into your page and edit by changing the domain name
"var Domain = "rapidsystem.net", the user address "fakeuser@" and the button text "Email Sales\" to meet your needs.
Its important to note. If you have more than 1 of these
scripts per page you
will have to make some changes to the code. There can only be one variable
called Mailme per page. So if you have a second script you can call it "var
Mailme1", without the quotes. Be sure to also change "parent.location="
to Mailme1 as well. This way you can have
as many buttons on a page as you like. Just up the number after Mailme
by one (1) for each button. Option 2 This option displays a text link instead of a button as shown below. The code is included. As above, you may edit it to meet your needs.
<SCRIPT LANGUAGE="javascript">
<!--
function doNothing() {
// This function does nothing!}
var Domain = "rapidsystem.net"
var Mailme = "mail" + "to:" + "feedback@" + Domain
document.write("Send comments to: <a href=\"javascript:doNothing()\;\"");
document.write("onClick=\"parent.location=Mailme\"> ");
document.write("Feedback");document.write("</a>");
// -->
</SCRIPT>
Copy and paste the code into your page and edit by changing the domain name "var Domain = "rapidsystem.net", the user address "feedback@" and the link text ("Feedback") to meet your needs.
|
[ back ]