How to show email addresses on the website to avoid spams?

后端 未结 12 1138
醉酒成梦
醉酒成梦 2020-12-23 19:18

I show email on my website as following

 Email

But I read the following while analysing

12条回答
  •  甜味超标
    2020-12-23 19:21

    The trouble with the JavaScript solutions is that people with JS turned off will also not see the email address. Albeit a minority you need a combination of techniques for the best results.

    Many of these techniques are detailed here, but I have provided the solutions only: https://www.ionos.co.uk/digitalguide/e-mail/e-mail-security/protecting-your-e-mail-address-how-to-do-it/

    Comments

    If you have any questions or suggestions, please write an e-mail to: user@domain.com.

    Hidden Spans

    
    
    

    If you have any questions or suggestions, please write an e-mail to: userCHARACTER SEQUENCE@domain.com.

    Reverse Strings This may not be friendly for multilingual sites.

    
    

    If you have any questions or suggestions, please write an e-mail to: moc.niamod@resu.

    JavaScript as in many other answers

    
    

    ROT13 Encryption JavaScript dependant but also helps with GDPR as it's encrypted.

    
    E-mail: please click
    

    CSS Only Borrowed from here: Protect e-mail address with CSS only

    
    
    
        Protect e-mail with only css
        
    
    
    
    
    
    
    
    

提交回复
热议问题