You need to Register for free and Login to post a message in the forum.

Forum

Subject: Stop spam-bots from collecting emails off your site!
Prev Next
You are not authorized to post a reply.

Author Messages
andyb1979
Nuke Ace
Nuke Ace
Posts:56

10 May 2008 7:27 AM  
Ok, so I find every time I put a mailto: link in my website, spam bots go mental and start filling up my inbox with rubbish. We have to be sly and cunning like a fox (a programming fox) to out-wit the spammers.

I found a link here that helps you encode your email addresses as numerical characters:
http://www.wbwip.com/wbw/emailencoder.html

It encodes a normal email like info@mysite.com to a mess of characters like this: "info@mysite.com"

This character string is translated back by browsers into text, but some spam-bots won't be clever enough to do the same.

For those spam bots that are pretty smart, we can use javascript to obfusticate the email address like this:
<a target=_blank href="mail.html" on mouseover="this.href='mai' + 'lto:' + 'YourName' + '@' + 'YourDomain.com'"  >
   yourname@yourdomain.com
</a>

This uses a bit of javascript to mangle the mailto: bit of the href. So the href is actually null until a real human user mouses-over the link, then it gets constructed from yourname @ yourwebsite.com.

Most spam bots look for mailto: and copy anything that follows it in a name@domain.com pattern, so this should confuse them. users without javascript get no click mailto: support, but can still read the email address.

For the best of both worlds, take the "yourname", "@" and "yourwebsite.com" bits of the email address and the "yourname@yourwebsite.com" inside the link and run them through the character mangler given at the top of this post. Or, just put "Email Us" or even an image in the anchor tag as follows:


Sites I made thanks to DNNCreative vids!
Rock Rhyme & Reason Fest | The Big Match
You are not authorized to post a reply.
Forums > DotNetNuke® > Quick Tips > Stop spam-bots from collecting emails off your site!



ActiveForums 3.7

Latest Forum Posts

Backup Live Website without control panel? by ollep
We are hosting with Re-Invent.com, a DNN host that doesn’t allow Control Panel access. We are ther...
RE: Keep Testing Skins by ollep
Hi Slowly sorting it out. www.goldcoastwebwiz.com/dotnetnuke/q1 The logo position is OK. B...
RE: Keep Testing Skins by ollep
Some details re Logo possition: HTML:div class="header">p>[LOGO]p>div>Found possitioning in "index_...
Pathing issues after setting up a domain name by harlowj
I had a site configured here: http://www.autorotate.com/portal/chl (all works good)I then decided to...
RE: Keep Testing Skins by ollep
Hi Lee – and Joe   I’m Using DNN 4.5.5   I just installed Summer Breeze Skin and Template, and a...
RE: DNN - web services not working by jncraig
Do your web services have their own config files? Are they located in actual directories below the ...
RE: Installation on Vista by jncraig
You install Visual Studio according to the installation instructions. Once installed, you can "open...
Installation on Vista by jesp17
I followed the how to install DNN to Vista, but what I miss is the intallation of visual studio. Can...
RE: Building a website with DNN by freedom22
Hi Lee, Thanks for getting back to me. I understand now what you are saying, but I am still confuse...
RE: How to limit access to the admin menu.... by tallorder
Hi Lee Unfortunately I can't see how it works in reverse because the original process involved movi...
RE: Building a website with DNN by leesykes
Hello,Those classes refer to the menu, and therefore will not be specified in your skin.htm file as ...
RE: [HOUSEMENU] token not working by leesykes
Glad you sorted it, thanks,
RE: [HOUSEMENU] token not working by whred5
OK I fixed myself after googling the problem. If anyone else comes across this situation you need t...
DNN - web services not working by paulrobinson
Good Afternoon,Please help.  I have just installed my DNN web site to my dedicated live host machine...
[HOUSEMENU] token not working by whred5
HiI have been playing around with the Lazy_Days skin in an effort to learn css based skinning, I hav...
RE: Building a website with DNN by freedom22
Lee or Joe, I meant that the skin.css file I downloaded has classes like .main_dnnmenu_item td w...
RE: Building a website with DNN by freedom22
Lee, thanks for your reply. I did find the files. I am going through your tutorail, and in video7...
RE: page publish date by leesykes
I would suggest you view these tutorials:User Accounts new features User Accounts and User Settings ...
RE: page publish date by jncraig
I'm not quite sure that I understand you, but ... on the user accounts page there are these options:...
RE: Best so far for me by jncraig
I like the Snapsis CSS Nav Menu. You'll find it at Snapsis.com.
AppTheory
RSS Feeds