Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Andreas Pfanner 196 posts 313 karma points
    May 29, 2013 @ 16:18
    Andreas Pfanner

    Better link text encoding


    SafeMailLink produces the following output:

    <a href="javascript:if(typeof(sendEmail)=='function'){sendEmail('4D61696C746F3A64616E667265642E7465727A6572406B656E646F782E636F6D');}">jane<!--y-->.doe@<!--x-->test<!--y-->.com</a>

    Would it be possible to improve the inner text value of the element even more, e.g. by adding random dynamic comments (additional to x, y) and placing these comments on random places, e.g.

    <a href="javascript:if(typeof(sendEmail)=='function'){sendEmail('4D61696C746F3A64616E667265642E7465727A6572406B656E646F782E636F6D');}">jane<!--m-->.do<!--b-->e@test.c<!--h-->om</a>

    Another way could be to use the same logic as for the mailto part by writing out a hash and decode by javascript when the page is rendered.

    These variations would differ on each page generation and would make it much more secure in my opinion. 
    What do you think? Could it be implemented?

    Best Regards

  • Lee Kelleher 3896 posts 14750 karma points MVP 10x admin c-trib
    May 30, 2013 @ 16:21
    Lee Kelleher

    Hi Andreas, thanks for suggesting this - I like it.  I've added it as an enhancement, which I'll get around to at some point, (it's all work work work for me these days :-)

    Cheers, Lee.

  • Andreas Pfanner 196 posts 313 karma points
    Jun 25, 2013 @ 13:36
    Andreas Pfanner

    Hi Lee,

    Sounds great, I'm looking forward to a new release :)

     Thank you,


Please Sign in or register to post replies

Write your reply to: