Web Hosting Talk







View Full Version : Hiding E-Mail Addresses on Page?


pgrote
11-04-2002, 12:54 AM
Hello,

I am looking for an easy to implement solution on using something other than mailto: on a web page that allows people to e-mail.

I want to be proactive on rolling out new e-mail addresses so the spam bots don't find them.

I'd like to avoid Javascript. The CGI solutions I have found seem limited.

Thanks!

Ivana Nutjob
11-04-2002, 12:56 AM
http://www.hotscripts.com/search/?query=hide+email+address&category=Perl

Lamont
11-04-2002, 01:01 AM
You can try this site. It converts your address info into a string of ascii code that the bots can't read (yet).

http://webcode101.com/nospam.php

pgrote
11-04-2002, 01:04 AM
Originally posted by Lamont
You can try this site. It converts your address info into a string of ascii code that the bots can't read (yet).

http://webcode101.com/nospam.php

Thanks. I saw that, but eventually the bots will read that.

What I was thinking of was a form that you could set to call a CGI that stored the emails in a file only it could read. Something like that.

Lamont
11-04-2002, 01:14 AM
You could put your real email address on a clickable gif that links to a formmail script where they can send you a message. The formmail script can send to a 'disposable' forwarding account that you can 'bounce' and change once the spammers get a hold of it.

madmouser
11-04-2002, 02:10 AM
You can do a simple rollover in Flash with the mailto: It's imbedded in the graphic and doesn't show on the page.
http://www.madmouser.com/testmail.html
Of course that can cause a problem if your visitors don't have Flash installed, so you've got to know your audience.
I keep one html link on the main page for e-mail.

Ivana Nutjob
11-04-2002, 03:16 AM
Just put in your phone number instead, no spambot will try to spam that! ;)

UH-Matt
11-04-2002, 05:43 AM
If you dont mind using a form then do It in PHP and not have ya email address on the page where the form is.

http://unitedhosting.co.uk/downloads/form.zip :)

Jim_UK
11-04-2002, 06:03 AM
EDIT: Forgot that you said you want to avoid Javascript, sorry :) The method below has more or less eliminated spambot crawlers sending junk to any emails though so it may be worth a try :)

Between the <head></head> tags put:


<script language="javascript" type="text/javascript">
<!--
function sendmail (address) {
address = address.split("*spamprotection*");
address = address.join("@");
window.open ('mailto:'+address,'_blank');
}
//-->
</script>


Then for your email links:


<a href="#" onClick="sendmail('first-bit-of-email*spamprotection*your-domain.com');return false">

Dogma
11-04-2002, 08:36 AM
This option (http://www.hivelogic.com/safeaddress/) uses JavaScript, but it's still good :)

Gordo
11-04-2002, 10:08 AM
I didn't really understand what was meant by being "proactive on rolling out new email addresses."

A consideration, not a solution. If you have the same email across many pages, you might consider making those a link to a single page and blocking from there. That would possibly make it easier to change methods from time to time, only one page to change.

michaeln
11-04-2002, 12:04 PM
The best way to avoid the spam is to link to a form for the user to fill out and that will send you your email. Though I have had one spammer fill out our form. Kinda strange.

Anyway another option is to have a cgi script that takes the email username, sld and tld in a query string and then opens the users mail program from there. I don't think I am explaining it correctly.

Something like this:
http://www.hostevolve.com/misc/email.php?test+hostevolve+com

so you would have:
<a href="http://www.hostevolve.com/misc/email.php?test+hostevolve+com">
Click here to email me...</a>


That seems to help cut it down a good bit... However, it only stops the bots. The spammers that manually get your address can still simply look at your source...

pgrote
11-04-2002, 01:40 PM
Thanks for the suggestions. I am leaning towards using a remotley hosted feedback form. It hides it well enough and offers the ability to create multiple forms for multiple emails.

filburt1
11-04-2002, 01:54 PM
Another PHP mailform: http://www.webdesignforums.net/showthread.php?s=&threadid=4446&styleid=3

Sends the user's IP and hostname too.

refcom
11-04-2002, 02:15 PM
You won't need it "remotly hosted" - you could host the script alongside the rest of your scripts... Unless you mean you don't have web hosting services that support PHP.

The Dude
11-04-2002, 06:47 PM
This is usefull info indeed :)

It sucks,we pay $$$ for internet access,and he still get plastered with spam......DOESNT SEEM FAIR......Something should be done!!

The Dude :angry:

eriky
11-04-2002, 07:37 PM
I use a simple image. People can't click it but i don't care. If you want to contact me you'll have to type anyway ;) (see my site below for an example)