How to protect your e-mail to the spam with a redirect?

Posted by Unknown on Monday, April 2, 2012

Would you like to e-mail address on the page, so that they can not get it work collecting addresses, but for the user to the Click here for the address to send a letter.
One way to protect your e-mail before downloading it by the works is to create a separate script that it will consist of two parts and re-routed to your email program.

This approach is very effective and works correctly with different browsers. Check how it works, click on the John Doe

To complete we will need a redirect script that converts the parameters into a working address. The following code example, add the index.php file in the / spamprotector /



<?

header("Location: mailto:$_GET['l']@$_GET['d']");

?>

This one line is enough - it makes a domain name and time by adding a monkey and send data to the browser, which runs e-mail program and send him a full e-mail. Works on anything they find, and man will be able to take advantage of the address.

What is important is that the line of code found on the website as the first - nothing before it can occur even space, because the header prior to shipment can not be sent to the browser of other characters.

If you put the script in the /
spamprotector / you can call it this way:


<a href="/spamprotector/?l=login&d=gmail.com">John Doe</a>

In place of a domain login and simply insert the e-mail address.

{ 0 comments... » How to protect your e-mail to the spam with a redirect? read them below or add one }

Post a Comment

Popular Posts