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 Pro
Nuke Pro
Posts:62

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 | Calvary Stockport | Stephen Webster
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: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
backend is changing from sql2005 to sql2008 by meenu
hi all advance thanks. in my DNN0408 website am using sql2005 as backend.now planning to remove sq...
About catalook error by kishorpawar
 I am  using dnn 4.8.4 version in my project, this  site is in 2 language,whenver i click on the BYN...
RE: Menu Keeps Verticaly by ruimacdonald
Tnx for your help. It's done. Rui
RE: Menu Keeps Verticaly by jncraig
The configuration of the MENU skin object is defined in the skin.xml file. You'll need to modify th...
RE: Add New Profile Properties by jncraig
I have not seen that problem. Which version of DotNetNuke are you using?
RE: Issue 39 Authentication by jncraig
I've been developing a new site using 4.9.0 and finding it quite stable.
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by jncraig
You should have no problem using SQL Server 2008 Express. I'm pretty sure that the connection strin...
DotNetNuke Modules
RSS Feeds