bo How To Stop Spambots Harvesting Your Email Address
back link building services=

!!

Join over 140k discussions or create one FREE


Cokoye is an Africans forum with over 500k members where people freely discuss issues. Register now to Join or start discussions FREE.

Guest posting agency=

Author Topic: How To Stop Spambots Harvesting Your Email Address  (Read 1312 times)

0 Members and 1 Guest are viewing this topic.

Offline Webm

  • Cokoye Hero Member
  • *****
  • Posts: 3284
  • Karma: +0/-3
  • Gender: Male
    • View Profile
    • Nigerian Web hosting Company
It's unfortunate, but the Internet certainly has its share of unscrupulous people. In my opinion, the worst among them are that deploy software robots that roam the web email addresses and harvesting of Web pages. These addresses are then collected in large databases and sold for the purpose of spam.

Now we all hate spam and anything that can be done to reduce it is very valuable. This is not a science and a basic knowledge of HTML and how to cut and paste you will be protected from spam bots. All that is going to use is a bit of Javascript.

Notepad first, open or any text editor and then copy and paste the following code in the file.

/ * This script provides a direct email address on a web page.
On the web page add the following: -
* /
Lock function (name)
{
var domain = "yourdomainname.com";
document.write (' '+ name + "@" + domain +' ');
}

/ * This script adds e-mail subject field.

blockersubject function (name, subject)
{
var domain = "yourdomainname.com";
document.write (' '+ name + "@" + domain +' ');
}

/ * This script is for use as an "email us" or, as in a menu system or on a page.
Insert the following website: -


blocker2 function (name, text)
{
var domain = "yourdomainname.com";
document.write (' '+ text +' ');
}

/ * This script allows the addition of a subject, but also the text can be displayed in a menu system. On its website, place the following: -
* /

blockersubject2 function (name, subject, text)
{
var domain = "yourdomainname.com";
document.write (' '+ text +' ');
}

/ / End of file.

Save the file as blocker.js in paper folders, as this script can be reused again and again as many websites as you like. You only need to change the variables in the script.

To get the script to work, there are a couple of things to do. Usually create a subdirectory for my javascript and actually call it that. Any web page JavaScript can be stored there. Keep a copy of the blocker.js file to this directory and then edit all the variables to suit your site.

Now you need to enable scripts that are called and the website has to know where they are. The easiest way to accomplish this is to have the information in the section of your document. Before the closing tag, and assuming you saved the file in a subdirectory of Javascript, insert the following line of code: -

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

You only need to make sure that the path to the javascript sub-directories is correct for the document. This is easy if you use Dreamweaver as you can modify the template for your site and will update all pages. If you are using PHP includes, you will need to ensure that the path is correct from its template through the directory header javascript. A little game I usually get this resolved for you.

One last thing you should keep in mind is that not everyone has JavaScript enabled. If a user returns to your page and have javascript turned off, then it will not be able to see your email address to everyone. To resolve this, enter the following code just below the area where it is assumed that the e-mail address to appear.

(Insert less than sign) noscript>

If you are seeing this, then JavaScript is enabled in your browser and you will not be able to see our email addresses. That are hidden by Javascript. You can turn your JavaScript or alternatively, in an email to youraddress the domain name dot com
(Insert less than sign) / noscript>

Be sure not to use the @ sign, or put the point of not even write the full email address correctly. You will destroy all the good work you have done.

And there you have it. A simple piece of javascript to keep your email address being harvested by the nasty little robots that roam the web.


 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
How many character is in the word "COKOYE":

Related Topics


back link building services=