Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-11-2007, 08:24 AM
Cristian's Avatar
Administrator
 
Join Date: Feb 2007
Location: Sibiu, Romania
Posts: 99
Default Antispam View Helper

Hello,

I was thinking on a very useful view helper for ZF.

We all know what big problem is with spam, and due to many of this problems come from the fact on websites are not protected (are put in raw) email addresses i was thinking on making a view helper which is going to replace all email address found or mailto link with an obfuscated or similar link.

I checked on lot of tips/tutorials but i didn't found an way to easily create such "safe" email formats on site. Any idea for a format ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-11-2007, 10:39 AM
Junior Member
 
Join Date: Sep 2007
Posts: 10
Default

Hi Cristian.

The first thing that pops in my mind is to replace the actual email address with an image that is generated on the fly using the same font as the page.

Adrian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-11-2007, 10:58 AM
Cristian's Avatar
Administrator
 
Join Date: Feb 2007
Location: Sibiu, Romania
Posts: 99
Default

Hi,

I am actually using something more easier: a Javascript function put for onClick:

function show_e(domain, user)
{
newWindow = window.open('mail' + 'to:' + user + "@" + domain , '', 'height=600,width=600,scrollbars=yes,resizable=yes ');
if (document.images) newWindow.focus();
}

There is however a small problem when clicking on link. On some browsers is opened also a new browser window, not just email client...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-11-2007, 11:00 AM
Cristian's Avatar
Administrator
 
Join Date: Feb 2007
Location: Sibiu, Romania
Posts: 99
Default

Anyway, also i am thinking on something fully done with ZF, not using third party components for image generation, aso...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:28 AM.