Generating On-The-Fly Email Addresses as an Anti-Spam Measure in WordPress
On my IT consulting business site, I'm using a php script I've written to generate on-the-fly random email addresses specific to the browsing session looking at the site. So, I can include email addresses in plain text on the site, but if a spammer harvests one, I can block it, and other people legitimately browsing the site will still get individualized working addresses they can contact me with.
It generates a log as email are generated, so you know who got what email. You'll want to watch the log size yourself so you don't fill your disk space.
Obviously it's more complicated than just this, there's whitelisting involved as well as some other behind-the-scenes trickery, such as double-checking emails against the log as they arrive, that I can't reveal publicly for opsec reasons.
But, I can reveal the basic php script that coughs up a random email address specific…




