On https://www.heartinternet.uk/blog/15-ways-to-hide-your-email-address/, under the sub heading Replacing with a PHP script, a method to hide email addresses is presented that I like very much. On the user page in question one includes
<p>Please <a href="mailhandler.php">email us</a>.</p>
mailhandler.php looks like this:
<?php header ("Location: mailto:[email protected]"); exit(); ?>
If the user clicks the 'email us' link, the computer responds with opening a New Mail window from its mail program, with the address filled in.
But is this method foolproof? This rationale makes me wonder: a bot visits every link it comes accross. In the case of the 'email us' link, it ultimately gets the command to open a New Mail window, which a normal browser passes on to the mail program. So, the only thing a spam bot would have to do is analyze that command correctly, and it has found another email address.