Feature request per my clients: mailto encryption?

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
albo
Posts: 26
Joined: Tue Aug 16, 2005 5:51 pm
Location: Santa Fe, NM
Contact:

Feature request per my clients: mailto encryption?

Post by albo »

As we know, spam-bots crawl websites, looking for patterns such as something@something.something as potential targets for spam. One of my clients has a plethora of email addresses on their website (project leaders, and the like). They would prefer not to become immediate spam targets.

One way this may be avoided is to provide rather simple encryption of the targets of <a href="mailto:" values in flat website files. This could be handled by the website author (me) manually, simply, highlighting the mailto target, and clicking a tool on a toolbar. It surely would be a handy feature!

If and until such a feature is added to WebBuilder, of course, I can do this on my own, with other free utilities...it's just a bit more time-consuming to cut-and-paste.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

you could do this with a little bit of javascript. write you email addresses with some sort of key like address____website.com then use javascript to find "____" and replace it with @ once the page is loaded.

you can also use js to do a blank replace. something like this:


Code: Select all

html:
<p>if you have any questions, <span id="mailjoe"></span>.</p>

<p>mary's email address is: <span id="mailmary"></span></p>


javascript:
var emailjoe=('joe' + 'client@' + 'mysite.org');
var emailmary=('mary' + 'client@' + 'mysite.org');
document.getElementById('mailjoe').innerHTML = ('<a href="mailto:' + emailjoe + '">' + 'Contact Joe' + '</a>');
document.getElementById('mailmary').innerHTML = ('<a href="mailto:' + emailmary+ '">' + emailmary + '</a>');
I didn't actually test that but it should work. the idea is that when a bot scrapes the page, they'll just get empty <span>s. when the page is loaded, the empty spans are replaced with the email address and link text. Actually, I think you could also simplify this by using javascript to replace the mailto: attribute. I don't have the steam to rewrite it though!

good luck,
will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Currently I think this is out of the scope of WeBuilder. Because encrypting mailto is actually programming task which is done differently by each of us.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply