Context
I want to protect a ecommerce website from email spam, whilst the legislation in my country makes mandatory to publish an email contact address on ecommerce sites.
As an additional constraint, GDPR rules also apply, and some captcha solutions are not compatible with them.
Being fully aware there won't be a perfect solution to this paradoxical situation, I am looking for a mix of possible techniques to reduce spam from robots, despite the risk of the email address being collected manually remains.
Project
Here's what I am currently considering:
- Publish an email address that redirects to another one, so that I delete and replace the published address if it gets too much spam after some time.
- Display the email address on a picture instead of clear text.
- Load the picture only after some mouse interaction, like dragging some slider (either a simple one, or puzzle-style captcha one). Another idea could be splitting the picture into chunks that load progressively on different of mouse clicks asked to the visitor. Or combine different techniques.
- For the picture showing the email address, use some font that is challenging for OCR. There is also a paradox here as it must still be easy to read by a visitor. Maybe would a dotted font suffice ?
- Add some anti-badbots rules in the
.htaccess
file.
I am also open to other ideas, especially if they are efficient and easy to implement.
Criteria
For the components, my selection criteria will be:
- able to run on a PHP shared hosting, or pure Javascript
- open source
- no charge
- no registration required
- easy to install on the contact page.
- preferably compact
- easy to use for the visitor
I am looking for comments, ideas, suggested scripts and fonts. Thank you.