PhpRiot
Download Article
Download this article or the entire “Anti-Spam Techniques In PHP” series with all listings and files.




More information
Related Articles
Related Books
Learning PHP, MySQL, and JavaScript: A Step-By-Step Guide to Creating Dynamic Websites (Animal Guide)

Learning PHP, MySQL, and JavaScript: A Step-By-Step Guide to Creating Dynamic Websites (Animal Guide)

If you know HTML, this guide will have you building interactive websites quickly. You'll learn...

Smarty PHP Template Programming And Applications

Smarty PHP Template Programming And Applications

A step-by-step guide to building PHP web sites and applications using the Smarty templating...
PhpRiot Newsletter
Your Email Address:

More information

Anti-Spam Techniques In PHP, Part 1

Technique 4: Forms

The final technique in this article is to not display your email address at all.

Simply provide your users with a web form that links to your email address. This is really simple to do with something like PHP’s mail() function.

Obviously spammers can then send you spam through your web form, but this extremely unlikely as it is time consuming and not automated (although technically it could be automated – this will be discussed in the article where a technique known as CAPTCHA will be suggested).

In This Article