Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

reliable mailto: masking?

  • 14-05-2007 8:57pm
    #1
    Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭


    I usually try to avoid putting email address in websites these days but I've got a situation where it's necessary.

    Is there a reliable way of masking an email address from bots, while still preserving a valid 'mailto:' for the user?

    I seem to recall using PHP for this in the past, but it's been a while. Anyone have a tried and tested method?


Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    you can use javascript like this:
    <a title="info" rel="domain_name.com"	href="mailto:info[at symbol]domain_name.com" onclick="this.href='mailto:'+this.getAttribute('title')+'@'+this.getAttribute('rel')"><span>Send Us an Email</span></a>
    


  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    Cheers, louie. That's the sort of thing I was looking for alright.


  • Closed Accounts Posts: 1,200 ✭✭✭louie


    no problem, and you are welcome.


Advertisement