PHP Email: Protecting Email Address from Spam Collectors
PHP Email Step By Step Tutorial: Today, many spammers use software that scours websites looking for email address on pages. When found, they will send spam to these addresses. Several way may be can used such as add the text "NOSPAM" into email. In this post, we will use JavaScript as tactic. We convert the entire link into ASCII codes, save them in a JavaScript array, and then use JavaScript to turn it back into HTML.
Create a file named "protected.php" within www/test/email. Enter above code. And test it:
When you look source, you will get like this:
| Series this article: Email: Sending a Simple Email (Part 1) Email: Sending a Simple HTML Mail (Part 2) Email: Sending Dual Format (Part 3) Email: Send Attachement Mail PHP Email: Using Embedded Images in HTML Email PHP Email: Sending Mass Email use BCC PHP Email: Protecting Email Address from Spam Collectors Tag: email, protection, security, spam Category: PHP Basic Post : January 21st 2008 Read: 5,664 blog comments powered by Disqus |
