Ochrana e-mailu před roboty

**CryptX**
„http://wordpress.org/plugins/cryptx/“:http://wordpress.org/plugins/cryptx/

No more SPAM by spiders scanning you site for email adresses. With CryptX you can hide all your email adresses, with and without a mailto-link, by converting them using javascript or UNICODE. You can choose to add a mailto-link to all unlinked email adresses with only one klick at the settings.

*

There is also a core WordPress function for it: antispambot().
The usage of the function is pretty simple:

/—code php

\—

But you can’t use PHP in your content (unless you’re using a plugin for that purpose). To use this function in your content, you can utilize a cool little shortcode like the one below. By using the shortcode above, you can cloak email addresses anywhere in your posts.

/—code php

), $atts ) );
return antispambot( $email );
}
add_shortcode( ‚antispambot‘, ‚antispambot_sc‘ );
// Usage: [antispambot email=“my.cloaked.email.address@gmail.com“]
?>
\—

*

případně

/—code php
function cwc_mail_shortcode( $atts , $content=null ) {
for ($i = 0; $i < strlen($content); $i++) $encodedmail .= "&#" . ord($content[$i]) . ';'; return '‚.$encodedmail.‘‚;
}
add_shortcode(‚mailto‘, ‚cwc_mail_shortcode‘);
\—

Použití shortcode:

[mailto]email@yourdomain.com[/mailto]