|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
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 |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
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. |
|
|
|
|
|
#3 |
|
Staff
Premium Member
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|