# Hiding email address

**URL:** <https://forum.kirupa.com/t/hiding-email-address/297872>\
**Category:** Uncategorized\
**Created:** [October 9, 2009, 2:58pm UTC](https://forum.kirupa.com/t/hiding-email-address/297872 "2009-10-09T14:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThreeDollarBill](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@ThreeDollarBill](https://forum.kirupa.com/u/ThreeDollarBill)\
**Post date:** [October 9, 2009, 2:58pm UTC](https://forum.kirupa.com/t/hiding-email-address/297872/1 "2009-10-09T14:58:07Z")

</div>

ok… can someone tell me if this method of hiding the email address from spam bots will work?  
basically, the idea is to create a link, make that link open a new page, and let the new page output the email address…

so there will be 2 files… “request\_email.php” and “print\_email.php”

in “request\_email.php”:

```auto
<a href="print_email.php?d=domain&n=myEmailAddress&end=com">The Link</a>

```

in “print\_email.php”:

```php
<?php
$dm = $_GET['d'];
$nm = $_GET['n'];
$e = $_GEt['end'];
$at = "@";
$dot = ".";

$theAdd = $nm . $at . $dm . $dot . $e;
echo $theAdd; // myEmailAddress@domain.com
?>

```

am i on the right path? or am i being stupid and missing something?
