Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
HOWTO Replace MAILTO HREF Tags with Javascript to prevent Spam
Old 08-29-2005, 01:37 PM HOWTO Replace MAILTO HREF Tags with Javascript to prevent Spam
Novice Talker

Posts: 5
Trades: 0
I wrote this quick simple hint about how to replace all of your "mailto" tags with a small bit of javascript to prevent spammers from indexing your email addresses. This is probably common knowledge to experts but for anyone who doesn't know, just trying to contribute to the anti spam cause!

Questions, comments, and feedback are VERY welcomed. I just built this site in the last 2 weeks all from scratch. If you find the article helpful, share it, blog it, link it, anything! Feedback is encouraged as well.

http://computing.adviceuniverse.com/...iltojavascript

-Eric
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
cberic3 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-30-2005, 05:04 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Some spam bots are getting wise to that method... here's a more advanced one if you're still having issues, or are just really paranoid:

http://reliableanswers.com/js/mailme.asp
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 08-30-2005, 09:07 AM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
Couldn't you just use a server side language to process a form or something to you, without the javascript?
__________________
For over a thousand generations, the Jedi Knights were the guardians of peace and justice in the Old Republic. Before the dark times, before the Empire.
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 08-30-2005, 10:58 AM
Novice Talker

Posts: 5
Trades: 0
not if you dont want to spend more money for the extra hosting options from yahoo!

-Eric
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
cberic3 is offline
Reply With Quote
View Public Profile
 
Old 08-30-2005, 11:00 AM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
Oh... I get free hosting from a friend .
__________________
For over a thousand generations, the Jedi Knights were the guardians of peace and justice in the Old Republic. Before the dark times, before the Empire.
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 08-30-2005, 05:43 PM
Ultra Talker

Posts: 255
Location: NY
Trades: 0
I found an easy way that you can hide your email from any sort of *Spam*. Unicode it! It works for me on my website. (At least so far.) I haven't heard anything Pro or Con about this method.

Here's where you can go to Unicode it: http://infidesign.com/temp/unicode/index.cfm

You'll be able to use this with Yahoo.

-->DianeD
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
Old 08-31-2005, 12:17 AM
Kaiman's Avatar
Extreme Talker

Posts: 237
Trades: 0
Here is another/similiar easy, but not foolproof one that I have used in the past. It keeps most of the spammers out and can be used for multiple email addresses on the same page.

Put this in the head of your document:

<script language="Javascript" type="text/javascript">
<!--
function sendmail(user,domain) {
document.location.href = "mailto:" + user + "@" + domain;
}
//-->
</script>

And this in the body of your document where you want the link to appear (also change the "you" to be the email username (before the @ symbol) and the "yoursite.com" to your domain name):

<a href="javascript:sendmail('you','yoursite.com');"> Contact</a>

Hope that helps someone out there,

Kaiman

Website Design, Graphics, Hosting - Glenwood Springs, CO
Computer Repair, Networking, Training - Glenwood Springs, CO

Last edited by Kaiman; 08-31-2005 at 12:23 AM..
Kaiman is offline
Reply With Quote
View Public Profile
 
Old 08-31-2005, 03:20 PM
Extreme Talker

Posts: 176
Trades: 0
i didnt know you could mail through java, interesting, i just always use php...

by the way if your using yahoo you might want to look here, http://www.x10hosting.com they rock!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
Old 08-31-2005, 05:11 PM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
this would be javascript, wmtalk.tk. And it is using an html mailto: link.
__________________
For over a thousand generations, the Jedi Knights were the guardians of peace and justice in the Old Republic. Before the dark times, before the Empire.
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 09-01-2005, 03:23 AM
Extreme Talker

Posts: 176
Trades: 0
lol, you know what i mean, java, javascript, same thing lmfao...

but i thought when you use the mailto: in html all it does is open up thier email program and inputs the email address into the to: line...
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
Old 09-01-2005, 04:06 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Quote:
but i thought when you use the mailto: in html all it does is open up thier email program and inputs the email address into the to: line...
That's true. The above JavaScript examples simply replicate that effect. However, regular-expression based spam bot spiders can usually pick out the simple ones, and UniCode won't stop very many of them...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 09-01-2005, 02:11 PM
Kaiman's Avatar
Extreme Talker

Posts: 237
Trades: 0
Quote:
lol, you know what i mean, java, javascript, same thing lmfao...
Actually wmtalk.tk they are not the same thing at all. Java is a programming language that is used to write applications for appliances and software (like the timer on your stove) . It can also be used to run server-sided scripts for website design. Javascript on the other hand is a scripting language used for client-side website design.

Kaiman

Website Design, Hosting, and Domain Registration - Glenwood Springs, CO
Computer Repair, Networking, Training - Glenwood Springs, CO
Kaiman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HOWTO Replace MAILTO HREF Tags with Javascript to prevent Spam
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.74691 seconds with 12 queries