EE: Safe Encode extension

The Dutch web guidelines do not allow you to use obfuscation to hide email addresses that are published on your site. ExpressionEngine will always use JavaScript to display email addresses when you use the {encode=""} syntax. With this extension, you can bypass this behaviour, without having to modify the core typography class.

→ Download the Safe Encode extension, version 1.0

What does it do?

Whenever you use {encode=""} in your weblog entries to display email addresses, this extension will generate an accessible link, instead of the JavaScript generated one. There is hardly any obfuscation, except that the . are replaced with . and the @ is replaced with @. This also means the email address is more likely to be picked up by bots and harvesters, so use at your own risk.

If you’re using the encode-tag in your templates, this extension will have no effect. But then again, you could just as well not use the encode-tag there.

Example

Using the extension, this…

{encode="example@domain.com" title="Send an email"}

…will be converted to…

<a href="mailto:example&#64;domain&#46;com">Send an email</a>

Comments

  1. author
    1 Jeremy 8 mei 2008, 15:22

    Ah, nice. I haven’t tried it in a standalone edit form, but I see how this will be nicer for that that the default EE javascript.

  2. author
    2 Paul Burdick 8 mei 2008, 19:08

    At this point, I have started considering obfuscation pointless, honestly. The email addresses I use regularly and/or post on others website are the ones I use constantly so the spammers will find and spam them no matter what I do to try and hide them. This is why we have spam filters that are turning out to be so incredibly powerful and intelligent.

  3. author
    3 Mike Verbruggen 9 mei 2008, 16:51

    Nice little plugin…

Leave a comment

Some html (a, em, strong, etc) allowed.


Zoeken in loweblog.com