This plugin provides the directive mailhide, that uses the Mailhide API to protect email addresses from spammers.
The Captcha::reCAPTCHA::Mailhide perl module is required for this plugin.
You can get the source code from github.
Copy imailhide.pm
to /usr/share/perl/5.10.0/IkiWiki/Plugin
or
~/.ikiwiki/IkiWiki/Plugin
, and enable it in your .setup
file
add_plugins => [qw{goodstuff imailhide ....}],
mailhide_public_key => "8s99vSA99fF11mao193LWdpa==",
mailhide_private_key => "6b5e4545326b5e4545326b5e45453223",
mailhide_default_style => "short",
This is your personal public key that you can get at Google.
This is your personal private key that you can get at Google.
As per the recommendation of the Mailhide API documentation, you
can define this as short
or long
. The short
parameter will
result in <a href="...">john</a>
links, while the long
parameter
will result in joh<a href="...">...</a>@example.com
.
Required. This is the email addres that you want to hide.
Optional. You can set the style parameter individually for each
mailhide
call. See mailhide_default_style
for details.