Webmastersite.net
Register Log In

Protecting Email From Spambots
Looking for some coding

Comments on Protecting Email From Spambots

kaelin
Beginner

Usergroup: Member
Joined: Feb 15, 2005
Location: Texas

Total Topics: 2
Total Comments: 3
kaelin
Posted Mar 01, 2005 - 4:30 AM:

Our alumni want to be able to click and email those that sign - I know there is a way to do this because I've seen it on other guestbooks - I don't see where the standard templating did this - but it's something I definitely need to do - otherwise the book is just great!

Has anyone done this or does anyone have a suggestion on how to? I've done a lot of searching and all seem to point towards inidividual encoding via javascript -- I've already got it to where it works for mailto:  - equals mailto:
I'm basically looking for something to force the display of the the script to make @'s @ -- just so the spambots won't pick them up - although complete encoding would be even better as I'm sure spambots have gotten smarter over the years..

Thanks for any input!

Lorri Nevil

http://www.baaa.org/guestbook/ - has turned out nicely!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 01, 2005 - 3:58 PM:

You can use php in the templates, like


<?php
$email = str_replace('@', ' at ', '{MEMBEREMAIL}');
$email = str_replace('.', ' dot ', $email);
echo $email;
?>


(Replace the template variable {MEMBEREMAIL} with whatever you're using if different.)
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.