CODE ANTI SPAM POUR MAIL

grandmugule Messages postés 9 Date d'inscription lundi 29 mars 2004 Statut Membre Dernière intervention 4 juin 2004 - 1 juin 2004 à 16:56
marek_wit Messages postés 14 Date d'inscription dimanche 7 août 2005 Statut Membre Dernière intervention 23 mars 2009 - 18 juin 2010 à 06:31
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/23321-code-anti-spam-pour-mail

marek_wit Messages postés 14 Date d'inscription dimanche 7 août 2005 Statut Membre Dernière intervention 23 mars 2009
18 juin 2010 à 06:31
Salut !

LE praca.fr ne marche pas => la c nouveaux => http://www.gadu.fr/modules/Anti-spam/antispam.php

@++
marek_wit Messages postés 14 Date d'inscription dimanche 7 août 2005 Statut Membre Dernière intervention 23 mars 2009
16 août 2007 à 23:00
A lutter contre le spam j'ai mieux : Un script lol : http://www.praca.fr/modules/Anti-spam/antispam.php

______________________________________________Script

<textarea name= "antispam" cols="100" rows="40">

<?
antispam();

function genChaine($int_max, $int_min=0) {
mt_srand();
if ($int_min !0) $longueur mt_rand($int_max, $int_min);
else $longueur = $int_max;

$mdp = '';
for($i=0; $i<$longueur; $i++){
$quoi= mt_rand(1,mt_rand(1,mt_rand(1,3)));
switch($quoi){
case 1: $mdp .= chr(mt_rand(97,122)); break;
case 2: $mdp .= mt_rand(0,9); break;
case 3: $mdp .= chr(mt_rand(65,90)); break;
}
}
return $mdp;
}

function genExtension() {
$quoi= mt_rand(1,mt_rand(1,9));
switch($quoi){
case 1: return "com";
case 2: return "net";
case 3: return "org";
case 4: return "fr";
case 5: return "be";
case 6: return "ca";
case 7: return "ch";
case 8: return "de";
case 9: return "it";
}
}

function antispam() {
echo("
<html><head><title>Anti-spam : le piège pour robots spammeurs</title>
<META name="ROBOTS" content="NOFOLLOW"></head>


<small> Retour à la page http://alimata.free.fr/antispam.php


<gras>Bouton Anti-spam - http://www.praca.fr/modules/Antispam/antispam.php

<textarea name ="antispam" cols="60" rows="6">http://www.praca.fr/modules/Anti-spam/antispam.php

" alt="Antispam" />



__________________________________________________________fin

A bientôt!
bprod Messages postés 12 Date d'inscription mercredi 8 octobre 2003 Statut Membre Dernière intervention 19 septembre 2005
7 juin 2004 à 09:46
bof
je pense que ça : http://www.phpcs.com/code.aspx?ID=17765
s'applique mieux et crypte réellement les mails...
mais bon c déja bien!
eax Messages postés 728 Date d'inscription jeudi 20 juin 2002 Statut Membre Dernière intervention 7 novembre 2007 2
2 juin 2004 à 13:26
mouaif
izt00g00d Messages postés 65 Date d'inscription dimanche 28 septembre 2003 Statut Membre Dernière intervention 28 juillet 2005
2 juin 2004 à 11:34
+ tôt que d'écrire en tout lettre 'arobase' et 'point'
j'aurais mis et
pour que ça soit + lisible
grandmugule Messages postés 9 Date d'inscription lundi 29 mars 2004 Statut Membre Dernière intervention 4 juin 2004
1 juin 2004 à 19:43
oué mais je prefere faire comme ca les expressions regulieres ca a l'aire vachement complique
coockiesch Messages postés 2268 Date d'inscription mercredi 27 novembre 2002 Statut Membre Dernière intervention 13 septembre 2013 4
1 juin 2004 à 17:19
Salut!
Un truc qui marche très bien pour vérifier la syntaxe d'une adresse e-mail est les expressions régulières....

http://www.phpcs.com/article.aspx?ID=527

@++

R@f
grandmugule Messages postés 9 Date d'inscription lundi 29 mars 2004 Statut Membre Dernière intervention 4 juin 2004
1 juin 2004 à 16:56
J'attend vos commentairs
Rejoignez-nous