Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-09-2003, 03:51 AM   #1
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
mailto:

what id like to do is have the standard mailto:address@wherever.com in my code, but hide the address so spammers and people cant look at the code and pinch the address for their evil spamming purposes.

is there a way of doing this?

i thought of maybe having a database with the email address in (or several emails as i'm hosting peoples sites and want to promote this service) and hold their id in the tag, but then how do i retrieve the email address???

any ideas greatly appreciated

thanks in advance
chris1977uk is offline   Reply With Quote
Old 05-09-2003, 07:23 AM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Try this:
http://www.sitepoint.com/article/914/2

Or try this:
Replace the @ symbol with &# 64 (ignore the space between the "&#" and the "64". That's just so it doesn't show up on this post as an "@")
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.

Last edited by Force Flow; 05-09-2003 at 07:25 AM.
Force Flow is offline   Reply With Quote
Old 05-09-2003, 09:17 AM   #3
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
The only real foolproof way is using a form.

The mailto link is problematic and doesn't always work.

Using javascript to generate the link is stymied by those that have disabled javascript and doesn't work in other browsers.

Using character entities to encode the addresses, works to an extent but spammers are starting to figure that one out.

Using a form is the best since you can also validate information.

I took over my companies site a few months ago. They had everyone's email address listed on the site. After getting sent over 200 viruses one weekend, I removed the email addresses and added a mail form. Now I may get 5 or 6 viruses sent on a weekend and spam is also down.

If you want, I have a form that I use using PHP that I can give you. I have it in several different versions, One with it all on one page, another where I have written it into a class and another that is hooked to a database.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:59 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2