• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

protect email address from spiders


Act your wage.
Political User
I understand that you can code your email in such a way on a web page so that it can't be picked up by a web spider. So what is the best way to do it and can someone post the code I need to use?
One way is to use something like: netryder [at] osnn [dot] net
However, certain bots have learned to overcome tricks like this. Another more effective way is to type the address into an image, and use the image in place of the address.


Act your wage.
Political User
Yeah, mainly to prevent spam. I don't know anything about the PHP Mail Form. I found out that javascript can be used to make it work. Is this an effective way?


Gojyone kawaiiiiiiii!
<!-- Begin No Spam -->
<!-- Begin
var user;
var domain;
var suffix;
function jemail(user, domain, suffix){
document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
// End -->
<!-- End No Spam -->

Then in the <BODY> section, insert this where you want your email address(es) to appear:

<!-- Begin
jemail("yourname", "yourdomain", "tld");
// End -->

Replace "yourname" with your email name, "yourdomain" with your domain name and "tld" with "com," "net," "org" or what ever. For example, jemail("joe","blow","com") will display as joe@blow.com, a fully functional link.


Act your wage.
Political User
Thanks leedogg and NetRyder. :)

Another thing, what code do I add to the javascript in <body> in order to specify the font, size, and color of the text displayed?


Glaanies script monkey
Political User
This used to work, not sure if they've fixed it, probably have, but I dont get any spam from my email address. use iso codes,



the bots read the iso codes now

// My Email Address
$myEmail = "email@mydomain.com";

// Additional Email Headers
$emailHeader = "From: {$_POST['fromEmail']}\r\n";
$emailHeader .= "Content-type: text/plain\r\n";
$emailHeader .= "X-mailer: PHP v" . phpversion();

// Send The Email
$email = mail($my_email, $_POST['subject'], $_POST['message'], $emailHeader);

if ($email) {
echo "Email Sent";
} else {
echo "Email Failed";
This assumes a web form which has at least three fields
a input[text] section with its name set to "fromEmail"
a input[text] section with its name set to "subject"
a textarea with its name set to "message"


Act your wage.
Political User
Still wondering how to code for text size, color, and font within the javascript for use with what leedogg posted earlier. I don't want the address displayed blue and underlined.
the spiders will no doubt learn how to read it in that format as well, they soon may be able to understand how to parse the javascript for the information they are looking for


I may actually be insane.
They can parse anything, keep in mind the people who invent the robots are internet users also, and therefore know the methods used to try and deter their own robots.

They can even read images and have now been made 'intelligent' so they can learn and post to almost any HTML form. It is quite a pain in the ass, however robots are being used less and less in favour of either huge lists or randomly generated names.

Members online

No members online now.

Latest posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member