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

RE: Set print button to be off by default by jncraig
As noted elsewhere, you can use a container that doesn't include those features. You can also edi...
RE: Can't edit settings by robax
This appears to be happening because of McAfee products. I'm testing it now. Rob
Set print button to be off by default by hollis3162
One of my templates has 8 modules on it.  I don't want 8 print buttons and I don't want 8 visibility...
RE: FCKEditor and dynamic css by DavidWSnow
Didn't touch and FCKedit files. originally I all I had to do was follow Lee's tutorial on the FCKedi...
need help to show breadcrumb in different way by smyagnik
hi.. i m new to DNN & i m makeing intanet site in DNN  i want the information regarding the page ...
RE: Subscriber token? by jncraig
I'm glad that was useful. If you "module" doesn't do any data access, the code if really simple. ...
RE: FCKEditor and dynamic css by jncraig
Did you modify one of the FCK editor's files to do this? If so, you probably overwrote that when yo...
RE: Can't edit settings by jncraig
I haven't seen that problem with IE, but I'm always finding differences. Using an XHTML skin is usu...
RE: Can't edit settings by Liz
You have hit the nail on the head. I was using IE 7, just tried it in FF and it works fine. Must be ...
RE: GoDaddy by greenflash
Hello aggiedan97, i have experience hosting multiple domains under a single dnn portal, for Godaddy ...
RE: GoDaddy by aggiedan97
Does anyone have any experience with hosting multiple domains on a single dnn portal @ Godaddy? I h...
RE: Subscriber token? by johnr
ok... at first I was a bit intimidated by the prospect of making a module!  Geez... it is "SuperSimp...
RE: Open menu links in new window? by ericb1
This forum re-names attachment files, so the old skin is called '171818187454.zip' and the new skin ...
RE: Open menu links in new window? by ericb1
Thank you so much for your help, I really appreciate it.  Ididn't realize that the code I tried to p...
RE: Upgrading Problemo by mgordon
Thanks Joe.  That did the trick.  A shame I have to update all the various skin .ascx files, but, he...
FCKEditor and dynamic css by DavidWSnow
I used to be able to have my styles from the skin.css be used inside the FCKedit while I was editing...
RE: Module menu skinning issue by jncraig
Try a different container and see if it works.
RE: Security Roles won't work for registered users by daniela
I have installed dnn 4.8.2 to realized my site but I have this problem: I have created role group an...
RE: Module menu skinning issue by dp6ai
I'm using blankcontainer.ascx there's not much to it and no css: ...
RE: Showing error after changing the settings in Container by jncraig
Some other things that you can do are: Look at the event log for a more detailed report and post ...
DotNetNuke Modules
RSS Feeds