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 314 karma points
    May 29, 2013 @ 16:18
    Andreas Pfanner
    1

    Better link text encoding

    Hi,

    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-->[email protected]<!--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
    Andreas

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    May 30, 2013 @ 16:21
    Lee Kelleher
    0

    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 314 karma points
    Jun 25, 2013 @ 13:36
    Andreas Pfanner
    0

    Hi Lee,

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

     Thank you,

    Andreas 

Please Sign in or register to post replies

Write your reply to:

Draft