Frequently Asked Question
How to prevent spamming from website form? 如何防止從網站表格發出濫發電郵?
Last Updated 9 years ago
- Use verification code for form submission to prevent bulk submission
ref: http://www.thewebhelp.com/php/php_contact_form_with_image_validation/
- If the form will send email to outside (e.g. "send to friend" function), restrict only members are allowed to do so.
- For PHP, validate domain of Email with "checkdnsrr" function
ref: http://www.sitepoint.com/article/users-email-address-php
- 於表格內使用驗証碼, 以防止大量自動化提交資料
參考: http://www.thewebhelp.com/php/php_contact_form_with_image_validation/
- 如果表格是要發送電郵到不同的電郵地址 (e.g. "電郵給朋友分享" 功能), 可以限制只有會員有此權限.
- 當使用PHP時, 可以使用"checkdnsrr"功能來檢測電郵中的域名是否正確
參考: http://www.sitepoint.com/article/users-email-address-php