Hacker News new | ask | show | jobs
by actionowl 1965 days ago
Using a contact form that sends you an email server-side is a good one, that way they never have your email (unless you respond).

I also had a static website at one point where I didn't want to add server-side processing for a contact form so I stored the email address obfuscated in javascript like:

  ["m","o","c",".","l","i","a","m","e","@","e","m"].reverse().join('')
and injected it into the page. It seems that most scraper bots don't execute javascript and with it split into an array they likely won't find it by scraping the js files either.