Simple Spam Prevention Script

phool4fool

203.***.***.***
1,379 days ago

Simple Spam Prevention Script

This little snippet of code helps protect your e-mail address from spammers and spam-bots.

PHP Example:

PHP code:

0<?php
1$addr1 = "mailto:";
2$addr2 = "you"; // This is the first part of your e-mail address
3$addr3 = "@"; // This is the commat or "at" component of your e-mail adress
4$addr4 = "domain"; // This is the domain name of your e-mail address
5$addr5 = ".com" // This is the extension the domain for your e-mail address e.g. ".com", ".net" etc..
6?>
7<!-- This is your code for the actual link -->
8<a href="<?php echo "$addr1"; echo "$addr2"; echo "$addr3"; echo "$addr4"; echo "$addr5";?>">link text</a>
9<?php
10/*
11AntiSpam V1.0
12Simple PHP script demonstrating variable
13application in a PHP environment.
14Script Copyright © Jake McMahon 2004
15*/
16?>
17

Logik

66.***.***.***
972 days ago
how would that protect your email from harvesters?

your code outputs: <a href="mailto:you@domain.com">link text</a> in plaintext HTML.

which the spam bot can harvest easily.