Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Prevent Junk Email

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
lynngrin
Posts:95



01/24/2008 4:10 AM  

Hi John

What do you recommend as the most effective method of preventing email addresses from being picked up, for junk mail purposes?

 

Thanks

Lynn


www.drivewaydesign.eu For A Dream Driveway

www.a2zdom.com Domain name matters


John Mitchell
Posts:3550



01/24/2008 9:28 AM  

Hi Lynn,

I have a "Mail Cloaker" rule for PageBlaster that hides them from spiders.

<rule><ruleName>MailTo Cloaker</ruleName><searchFor>href=['"]?mailto:(\w+[a-zA-Z0-9.\-_]*)@(\w+)\.(\w+)['"]?</searchFor><replaceWith>href="javascript:window.location.replace('ma'+'ilto:'+'$1'+'@'+'$2'+'.$3')"</replaceWith></rule>
John Mitchell
Posts:3550



01/24/2008 9:31 AM  
Another effective way is to put your e-mail addresses in an image, but that does not make it easy for someone to just click on the link and send an e-mail.

You can also use some sort of feedback form that sends e-mail from the site so that you never have to expose the e-mail address directly.
lynngrin
Posts:95



01/24/2008 10:17 AM  
Thanks for the swift reply John, I like the ideal of the "Pageblaster Mail Cloaker"

www.drivewaydesign.eu For A Dream Driveway

www.a2zdom.com Domain name matters


loadedtechnologies
Posts:4



06/19/2008 6:46 PM  

Hey John,

I found that this method only works for email addresses s that are non country specific (e.g .com .net .org etc.) - In order for the replace rule to include the country identifier (e.g email@domain.com.au)I have modified the code to look like this:

                
                    MailTo Cloaker
                    href=['"]?mailto:(\w+[a-zA-Z0-9.\-_]*)@(\w+)\.(\w+)([\.a-zA-z]+)['"]?
                    href="javascript:window.location.replace('ma'+'ilto:'+'$1'+'@'+'$2'+'.$3'+'$4')"
                 

                

Hope this helps!

Cheers,

Ardi

John Mitchell
Posts:3550



06/20/2008 7:54 AM  
Excellent, thanks for the improvement Ardi.
koan@koan.at
Posts:1



07/23/2008 11:27 PM  
Hey there,
the regular expression didn't work for email adresses with '-' in the domain name (like email@my-company.com). So I tried around, because I am not an expert in regular expressions. This worked for me, hope to help.

MailTo Cloaker
href=['"]?mailto:(\w+[a-zA-Z0-9.\-_]*)@(\w+[a-zA-Z0-9.\-_]*)\.(\w+)([\.a-zA-z]+)['"]?
href="javascript:window.location.replace('ma'+'ilto:'+'$1'+'@'+'$2'+'.$3'+'$4')"

Cheers,
Andy
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.




ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DotNetNuke CSS Menu 3.3.4 (single use)

Item codeCSSNM33SU
AuthorJohn Mitchell
Base Price$25.00
Product Information 
DotNetNuke CSS NavMenu 3.3.4 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 Performance for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$25.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

AuthorNina Meiers
Price$49.00
Product Information 
XDAmarina (CSS & Flash Skin)

AuthorNina Meiers
Price$49.00
Product Information