Protect email addresses from SPAM bots? Options
tkahn
Posted: Monday, October 29, 2007 10:51:45 AM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
Hi!

A client of mine wants to protect the email addresses on their page from being snatched by SPAM bots but they still want to have working mailto links.

One possible solution is to use an image generator that generates images with the e-mail address and javascript (document.write) to "scramble" actual links in the href-tags.

Is there anyone else out there who has confronted this problem? How did you solve it?

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
Tobbe
Posted: Monday, October 29, 2007 11:18:32 AM
Rank: Devotee

Joined: 7/19/2006
Posts: 97
I use a solution that rewrites all mailto links to javascript using a httpmodule.

You can find a version for umbraco made by Morten Bock here: http://www.mortenbock.dk/protect-e-mail-links-in-umbraco-v3-58.htm

And if you would like to see how the email-links will look, check this site:
http://www.radaridklubb.se
tkahn
Posted: Monday, October 29, 2007 12:06:06 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
Wow!
This is really great! Thanks a million!
So elegant and powerful!


Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
tkahn
Posted: Friday, November 16, 2007 12:21:36 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
I've been having some trouble with this component - it generates an awful lot of entries in my umbraco error log (see the discussion at http://forum.umbraco.org/17033).

The original source code for this component is written by Marco Bellinaso in 2004, http://www.dotnet2themax.com/blogs/mbellinaso/ and then it has been recompiled and modified somewhat by various Umbraco users.

Having gone through the source code I have a theory about what causes all these errors. The code lines I'm wondering about is this:

Code:

// if the </html> closing tag is found, this is the end of the file, so let's do the replace work
if ( Regex.IsMatch(buf, "</html>", RegexOptions.IgnoreCase) )


But what if a file is served as "text/html" and the file doesn't contain an ending html-tag? If I've interpreted the code correctly the code does not address this issue. This might also explain why a lot of the error log entries that I received was for the file "ping.aspx". This file is served with the content type "text/html" and it doesn't contain anything else but the string "I'm alive!".

Could this be the source of the error?

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.