Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Protection From Harvesters

This template tag provides the email address when the page is viewed, yet when harvested or scanned by a web spider or robot, they see the code not the email address. Thus, it stays hidden from the evil doers.

I'm pretty sure that this is dead wrong. Whoever wrote it misunderstood that the PHP is being parsed server-side, not client-side. Thus, the only way the 'evil-doer' will see the PHP code is if they are accessing the filesystem. Am I missing something big here? I double checked, and it indeed sent the e-mail address in plain text in the HTML document. --Tom Dale 08:22, 30 May 2005 (UTC)

Another Method

I hope I am doing this right, my apologies if I am not. I have not been able to get the methods described to actually work on a Page.

Another method to disguise your email adress on Pages is using simple javascript. something like:

<a href="#" onload="do onclick="JavaScript:window.location='mai'+'lto:'+'email'+'@'+'dom'+'ain'+'.c'+'om'" alt="email me"><script type="text/javascript">document.write("em"+"ail"+"@"+"do"+"main"+"."+"c"+"om")</script> </a>

the example shown is for email@domain.com

not the best, but it breaks it up and should make it hard for harvesters to catch it.

if anyone thinks this is a good suggestion feel free to add it into the article section.

Linking off

We seem to be linking off quite a bit from this page. It's messy. Do we want these?

mrmist 07:10, 19 September 2012 (UTC)