bookmark - Email Address Protector Protect your email address fron harvesto

Email Address Protector - Protect your email address fron harvesto

 
 Discussion by pbolduc with 4 Replies.
 Last Update: December 28, 2004, 10:21 pm
 
bookmark - Email Address Protector Protect your email address fron harvesto  
    
free web hosting
 
As I was working on a sub domain for my new site I decided to protect the email addresses on the site with a simple javascript to prevent harveters from grabbing them and flooding the mail box with spam.

Hadn't seen the script in the forum yet so I thought I'd share it.

Change the information in blue to yours and place this code where you want the link to show. Left as is no line decloration will appear under the link. If you want the link underlined then change none to: underline

<script language="JavaScript"><!--
username = "usernameHere";
siteURL = "siteURLHere";
document.write('<a href=\"mailto:' + username + '@' + siteURL + '\"style="text-decoration: none;"> Contact Us</a>');
// End -->
</script>

Mon Dec 27, 2004    Reply    New Discussion   


It might be a little better if you convert ESCAPE that javascript or to convert every character to a char(...) / chr (...) value.

Tue Dec 28, 2004    Reply    New Discussion   

QUOTE (jipman)

It might be a little better if you convert ESCAPE that javascript or to convert every character to a char(...) / chr (...) value.
[post="11429"]<{POST_SNAPBACK}>[/post]



Please explain more clearly... thanks

Tue Dec 28, 2004    Reply    New Discussion   

I think he means encode each into a chr value rather than straight text.

Tue Dec 28, 2004    Reply    New Discussion   


QUOTE (coder2000)

I think he means encode each into a chr value rather than straight text.
[post="11475"]<{POST_SNAPBACK}>[/post]



Perhaps this is what he was saying?

<script language="JavaScript"><!--
purpose = "mailto:";
username = "usernameHere";
siteURL = "siteURLHere";
linkName = "Contact Us";
document.write('<a href=\"'+purpose+username+'@' + siteURL + '\"style="text-decoration: none;"> '+linkName+'</a>');
// End -->
</script>


This script works the same and I guess it would be a little bit more secure

pete :)

Tue Dec 28, 2004    Reply    New Discussion   

Quickly Post to Email Address Protector Protect your email address fron harvesto w/o signup Share Info about Email Address Protector Protect your email address fron harvesto using Facebook, Twitter etc. email your friend about Email Address Protector Protect your email address fron harvesto Print
Reply / Comment Ask a Question? Share / Bookmark E-Mail a Friend Print

Professional Designers Do you design sites for a living?  Professional Designers Do you design sites for a living? (16) (3) I Want To Learn Php And Mysql, So I Can Start Deve   I Want To Learn Php And Mysql, So I Can Start Deve