Hi everyone,
 
I am looking for a way to encrypt & decrypt an email addy to prevent spam while posting a message to discussion board.
 
I tried to split email address;
1-
 
($id,$host) = split(/\@/, "$email");
 
so, split it into $id and $host and later retrieve it by joining both.
 
But still its visible, and visitors can guess it seeing the source code or while it posted to script.
 
2-
 
Writing it to a pipe delimited text or db file with time of posting and email and later retriving it by passing the
$time to script and matching corresponding email is the second option.
 
$email|$time
 
Don't want to use this option, because the db file can get quite big, since its a high traffic site and one message is posted
approx every minute.
 
What I am looking for a way to compelety change the email addy layout by replacing it with unguessable alphabets and numbers or either of those and vice versa. eg.
 
 
using some search and replace/translate function ?
 
$email = "blah..3b92a98ualwetwe334...blah";
 
and then translating it back to email when needed.
 
Thanks for any input.
 
Sara.
 
 

Reply via email to