Subscribe

RSS Feed (xml)

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:

0 comments:

Related Posts with Thumbnails