| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
One of the ways to protect an email form is to force the user to submit using a valid form. I do this like so, when the user visits the form the script creates the token and adds it as an invisible field to the form. When processing the submission the script looks for this token and verifies that it is still valid (this could be a file on the server, session variable, or database entry) and if it isn't valid I deny the input. This prevents a script from just dumping values onto your send email script (which is probably the source of the spam).
I should point out that I delete the token after it is used once.
| References: | |
| >Email spam - possible problem. (From: Mark Wheeler <email@hidden>) | |
| >Re: Email spam - possible problem. (From: Errol Sayre <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.