Gossamer Forum
Quote Reply
Cripter addresses email
Hello with all.

I seek a solution for cripter addresses email on the detail page.

I want to avoid the aspiration (No Spam)

Does somebody have a solution?

Thank you

Michel
Quote Reply
Re: [mick31] Cripter addresses email In reply to
Could try something like this;

<%new_email($Contact_Email)%>

...and create a new global, called 'new_email' , with the following codes;

Code:
sub {

my $email = $_[0];
$email =~ s/\@/ at /;
$email =~ s/\./ dot /;
return $email;

}

That should change;

you@yoursite.com

...into...

you at yoursite dot com

This is the main way people get around crypting email addresses, so the basic spiders cannot read it.

Hope that helps Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Cripter addresses email In reply to
Hello Andy,

Ca does not go for me!

I have an error with the tool of electronic mail (syntax incorrect).

For: mick at domaine dot com

A solution?



------------------------------------------
For PHP
------------------
Script

<?
/* Function allowing of crypter an address email to avoid its aspiration */
function crypt_email($email_a_crypter)
{
$output = '';
$len = strlen($email_a_crypter);
for( $x = 0; $x < $len; $x++ )
{
$resultat .= '&#' . ord($email_a_crypter[$x]) . ';';
}

return $resultat;
}
?>
---------------------
Utilisation.

<?
$email = 'dudule@domaine.com';
$email_crypte = crypt_email($email);
?>
<a href="mailto:<? echo $email_crypte; ?>">my adresse</a>

---------------------


There is a solution to adapt a script for Links SQL?

Mick
Quote Reply
Re: [mick31] Cripter addresses email In reply to
Ah.. you wanted these addresses to be linkable too?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Cripter addresses email In reply to
Yes ...
Quote Reply
Re: [mick31] Cripter addresses email In reply to
Mmm... you could try adding this in link.html;

Code:
<script LANGUAGE="JavaScript">

var answer = confirm("Do you wish to send us an email?");

var emailvalue = "<%Contact_Email%>";

subject = "Contact";
body = "";

if (answer){
window.location = "mailto:"+emailvalue+"?subject="+subject+"&body="+body;
}

</script>

Not sure how effective it would be, cos most spiders read the HTML, and don't just look for addresses in a <a href=mailto:...>...</a> tag.

Hope that helps.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Cripter addresses email In reply to
Andy,

What about creating a new field, or a global, that has email_user and email_domain.

Have the javascript put it together like:

window.location = "mailto:"+email_user+"@"+"email_domain"+"?subject="+subject+"&body="+body;

The javascript is evaluated at click time, so unless the robot clicked, rather than parsed, the page, it would still be hidden, right?

(I don't do javascript, but it's a thought).


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [Andy] Cripter addresses email In reply to
Thank you Andy,

I created an additional table Crypt_Email.

I code address email via JavaSript.

----------------------------
<script type="text/javascript" language="javascript"><!--
eval(unescape(
'%76%61%72%20%65%3D%27%69%6E%66%6F%27%2B%27%40%27%2B%27'+
'%67%6F%73%73%61%6D%65%72%2D%74%68%72%65%61%64%73%2E%63'+
'%6F%6D%27%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65'+
'%28%27%3C%61%20%68%72%65%66%3D%22%6D%61%69%6C%74%6F%3A'+
'%27%2B%65%2B%27%22%20%74%69%74%6C%65%3D%22%27%2B%65%2B'+
'%27%22%3E%27%2B%65%2B%27%3C%2F%61%3E%27%29'));
// -->
</script>
---------------------------------------------

I use the tag <%Cript_Email%> on the detail.html page

It would be necessary to create a filter as with PHP.
But, I am not developer.

Thank you.
Quote Reply
Re: [pugdog] Cripter addresses email In reply to
Can you find that post Paul made not that long ago (I swear it was in the 'Other' category). It basically encrypted the @ and . in an email, and then when a user clicked it, some javascript debugged it. This would be ideal, but I can't find it :(

All it would need this is a simple global (such as posted in my 1st reply), which would replace the special charachters with their respective words.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [mick31] Cripter addresses email In reply to
I'm afraid I have no idea how you would go about decrypting that string, sorry Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Cripter addresses email In reply to
This wasn't by paul, but might be help:

http://www.gossamer-threads.com/...orum.cgi?post=193221


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Cripter addresses email In reply to
Bang on :)

Create a new global, called 'crypted_email', containing;

Code:
sub {

my $email = $_[0];
$email =~ s/\@/\*/;
return $email;

}

Then, in detailed.html, add the following HTML;

Code:
<script LANGUAGE="JavaScript">
<!-- // Hide real email address.
function ToMailer(a) {
RE = /^(.+)\*(.+)$/;
var launch = a.replace(RE,"mailto:$1@$2");
window.location = launch;
}
// End -->
</script>


... and call the link with;

Code:
<a href="javascript:ToMailer('<%crypted_email($Contact_Email)%>')">Email-Me!</a>

That should work :) Thanks for the link pugdog.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Cripter addresses email In reply to
Thank you for your assistance.

That goes very well.

Andy, you always show professionnalime.

One can count on You !

Gossamer-threads must also thank you !

Thank you

Quote Reply
Re: [mick31] Cripter addresses email In reply to
Quote:
Andy, you always show professionnalime.

One can count on You !

Thanks Blush