La présentation est en train de télécharger. S'il vous plaît, attendez

La présentation est en train de télécharger. S'il vous plaît, attendez

Laurent Capelli Solution anti SPAM : Codage adresse mail Comment se protéger des robots chercheurs d'adresse mail éviter les chaînes du type «

Présentations similaires


Présentation au sujet: "Laurent Capelli Solution anti SPAM : Codage adresse mail Comment se protéger des robots chercheurs d'adresse mail éviter les chaînes du type «"— Transcription de la présentation:

1 Laurent Capelli Solution anti SPAM : Codage adresse mail Comment se protéger des robots chercheurs d'adresse mail éviter les chaînes du type « » ou « mailto: » Solution technique proposée et mise en place au CC le cryptage javascript dans le source html, les mails sont cachés tout en les laissant disponibles pour les visiteurs. Une fonction crypte str_rot et lautre décrypte str_unrot et affiche le résultat avec document.write

2 Laurent Capelli Fonction de cryptage (ici en php) function str_rot($string) { $known_letters = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n", "o","p","q","r","s","t","u","v","w","x","y","z","A","B","C", "D","E","F","G","H","I","J","K","L","M","N","O","P","Q", "R","S","T","U","V","W","X","Y","Z","0","1","2","3","4", $key_known_letters = array_flip($known_letters); $count_known_letters = count($known_letters); $key = strlen($string)%$count_known_letters; $out = ""; for ( $i=0; $i

3 Laurent Capelli Décryptage en javascript function str_unrot(debut, chaine, fin) { var known_letters = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q", "r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I", "J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z", var count_known_letters = known_letters.length; var key = (chaine.length)%count_known_letters; var out = ""; for ( var i=0; i

4 Laurent Capelli Ça ressemble à quoi au final str_unrot(' '); str_unrot('', 'xqBnssItosDHIovH',''); Pour avoir le résultat


Télécharger ppt "Laurent Capelli Solution anti SPAM : Codage adresse mail Comment se protéger des robots chercheurs d'adresse mail éviter les chaînes du type «"

Présentations similaires


Annonces Google