View Full Version : email protection??
ragman
08-11-2005, 01:39 PM
I have previously spider'ed by something and now get way too much spam as a result.
Im designing a new website where I need my contact email on the pages but dont want to get spammed? Are there any good javascipts or something else that I can use to do this?
dbusguy
08-11-2005, 01:47 PM
Yes there is.
I use this on my site.
In the HEAD
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var user;
var domain;
var suffix;
function jemail(user, domain, suffix){
document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}
//-->
// End -->
</script>
In the BODY where you want the link
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
user = "user name here";
site = "domain.com here";
document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write(user + '@' + site + '</a>');
// End -->
</SCRIPT>
just change the items in red
ragman
08-11-2005, 02:01 PM
I like the script but dont particularly like seeing my email on the website. Is there a way to replace that with text?
Bogie
08-11-2005, 02:14 PM
<!-- TWO STEPS TO INSTALL ANYWHERE MAIL:
1. Paste the designated coding into the HEAD of your HTML document
2. Put the last script into the BODY of the HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function mailsome1(){
who=prompt("Enter recipient's email address: ","antispammer@earthling.net");
what=prompt("Enter the subject: ","none");
if (confirm("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true){
parent.location.href='mailto:'+who+'?subject='+wha t+'';
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<a href='javascript:mailsome1()'>E-Mail Someone!
<FORM>
<input type=button value="E-Mail Someone!" onClick="mailsome1()">
</FORM>
</CENTER>
<p>
<font face="arial, helvetica" size="-2">Free JavaScripts provided
by <a href="http://javascriptsource.com">The JavaScript Source
</center>
<!-- Script Size: 1.02 KB -->
dbusguy
08-11-2005, 02:54 PM
That works Bogie, but there are 3 pop up windows to click on before youe e-mail client opens...kind of annoying...but your e-mail address does not show on the web page.
Bogie
08-11-2005, 03:04 PM
LOL ... hadn't tried it, but it looked good, code-wise. Just tried it now. While it might be a bit annoying, it is confirming who it is being mailed to, and the subject.
if you know a little flash, making a tiny movie link will cure that completely.
Bogie
08-11-2005, 09:48 PM
re: using Flash to make an inquiry form instead of just a link to email addy
If you have no flash experience or software to do so, then you could use a neat program called Coffee Cup Form Builder (http://www.coffeecup.com/form-builder/). Great WYSIWYG editor for Flash based forms.
funny I never thought much of it, for a long time I never had the spam problem other people did. It was because I had a flash site. I took it down for a while and put an html temp site up, and a month later everybody seemed to think I needed cheap meds...
Bogie
08-11-2005, 09:54 PM
funny I never thought much of it, for a long time I never had the spam problem other people did. It was because I had a flash site. I took it down for a while and put an html temp site up, and a month later everybody seemed to think I needed cheap meds...
What, you poor guy ... no promos for cheap meds .... damn, look what you were missing! Betcha you're happy now :d
kibboy
08-11-2005, 10:13 PM
dbusguy had it right. I've been using that for years and no spam. It blocks spiders from finding your email programatically, it does not matter that your email shows on the page since real people aren't collecting the emails because they need 10s of thousands to spam.
kibb
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.