Spam incessant via formulaire de contact

Spam incessant via formulaire de contact - Codes et scripts - Linux et OS Alternatifs

Marsh Posté le 25-04-2009 à 14:03:51    

Bonjour,
 
J'ai mis sur une page un formulaire de contact simple : http://aeroref.belforum.net/ajout.html
Seulement, je reçois depuis plusieurs semaines plus de 20 spams de merde par jour (!) via ce formulaire. Comment faire pour remédier à cela ?
 
 
Voici mon code :
<form action="/cgi-bin/formmail.pl" method="post">
<input type="hidden" name="recipient" value="---@belforum.net">  
<input type="hidden" name="redirect" value="http://aeroref.belforum.net/ajoutdone.html">  
<input type="hidden" name="required" value="Nom,Message">  
<b>Le nom du site que vous souhaitez ajouter :</b> <BR>
<INPUT size="60" TYPE="text" name="Nom"><BR>  
<b>Votre adresse e-mail :</b> <BR>  
<INPUT size="60" TYPE="text" name="Email"><BR> <b>Message (voir les quatre points obligatoires) :</b> <BR>  
<TEXTAREA cols="60" rows="10" NAME="Message"></TEXTAREA><BR><BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<INPUT TYPE="Submit" VALUE="E n v o y e r"><BR>  
</form>
 
<br>
<i>Vous recevrez la confirmation de l'ajout dès que le site sera accepté.</i>

 
 
 
Et voici le genre de spam... :pfff: :
Voici le résultat du formulaire envoyé par
 () le Samedi 25 Avril 2009 à 12:48:12
---------------------------------------------------------------------------
 
Nom: Alterse
 
Email: erestydet@gmail.com
 
Message: For  about  cheapest seneca cigarettes online image as david lorenz
winston solitude small .sometime how tall does a tobacco plant grow in one year
.This  Before  must be carton newport cigarette .<a href=http://db2.acadiau.ca/wiki/MoinMoin/DawikyPujyfyb?action=AttachFile&do=get&target=cigarrette-pricesflorida.txt>girl
smoking four at once - heavy smoking</a> or someone girl force smoking
cigarette i'm with long & short term effects of smoking tobacco .about
.neither Before how to persuade someone to stop smoking   Other cigarette
smoker which <a href=http://wiki.homebase.dk/YesColombia/GulofXygyxoj?action=AttachFile&do=get&target=adolescent-cigarrette-teaching.txt>cheap
basic cigarettes</a> <a href=http://swfdec.freedesktop.org/wiki/Installation/YesevPajaron?action=AttachFile&do=get&target=tobacco-road-by-erskine-cowell.txt>little
chief meat smokers</a> .Come to bull of the woods chewing tobacco so <a
href=http://linusera.org/wiki/GowuboEynyru?action=AttachFile&do=get&target=who-was-on--winston-shrout-in-kelowna.txt>amount
of cigarett packs in a shipping container</a> <a href=http://jeppi.klaki.net/3f/2006/UupyxaByaan?action=AttachFile&do=get&target=are-black-and-milds-worse-than-cigarettes.txt>what
cigarette brand gives you the biggest buzz</a> .about  iraqi camel spider
.joe camel drawings should <a href=http://fussball.lefant.net/FussBall/FutbolRevolucionarioShirts/AuxoxaMahaham?action=AttachFile&do=get&target=richie-kotzen-tobacco-road.txt>cigarette
prices in pa</a> <a href=http://www.vuwcu.org.nz/AskGodInTheQuad/Questions/PomopJuvaqe?action=AttachFile&do=get&target=cigarettes-shopping-austin-menthol-gold-100s.txt>quotes
of winston churchill</a> .Where  also  how to not get caught smoking weed
Heh, .Usualy best smoking cessation aid for 18 year old <a href=http://wiki.salondelajusticia.net/TalleresCooperartes/XuzecubCamuly?action=AttachFile&do=get&target=smoking-stories-asfs.txt>cigarette
coupons rj reynolds</a> .what eats a camel spider it contain r j reynolds
smokeless cigarette .or again!
  ohio tobacco laws .<a href=http://www.nexenta.org/os/DistributionBuilder/NycitewAabidok?action=AttachFile&do=get&target=glassworking-tutorials-smoking-pipes.txt>women
smoking gallery</a> it called or are smoking bans legal under <a
href=http://jeppi.klaki.net/3f/2006/UupyxaByaan?action=AttachFile&do=get&target=are-black-and-milds-worse-than-cigarettes.txt>are
black and milds worse than cigarettes</a> .This was  it called  cigarette
lighter battery charger or recreational cheapest carton of cigarettes .
 
submit: S e n d
 
---------------------------------------------------------------------------
 
 
 
 
Voici le résultat du formulaire envoyé par
 () le Samedi 25 Avril 2009 à 07:47:40
---------------------------------------------------------------------------
 
Nom: wrampifinia
 
Email: shanetlam@gmail.com
 
Message: Best reviews of the day about Watch sport, Monday night sport in,
sport pics and Official sport sites http://facilmundo.com  !
Most actual news about Need car speed unleashed and Car dealers  http://todostierra.com !!
 
submit: S e n d
 
---------------------------------------------------------------------------
 
 
Voici le résultat du formulaire envoyé par
 () le Vendredi 24 Avril 2009 à 21:47:53
---------------------------------------------------------------------------
 
Nom: qmvufnurb
 
Email: gydqgd@rkikgx.com
 
Message: Ebd5yd  <a href="http://bjmwizfyedlt.com/">bjmwizfyedlt</a>,
bkhoxipmqqcy, [link=http://djxuzonmqyww.com/]djxuzonmqyww[/link], http://uefzgeliyqvz.com/
 
---------------------------------------------------------------------------
 
 
etc.
 
 
 
 
 
Merci beaucoup pour votre aide !

Reply

Marsh Posté le 25-04-2009 à 14:03:51   

Reply

Marsh Posté le 25-04-2009 à 14:34:30    

Ben va falloir mettre une captcha :spamafote:

Reply

Marsh Posté le 25-04-2009 à 14:37:06    

Ha oui mais 'faut qu'on m'explique comment !  :)

Reply

Marsh Posté le 25-04-2009 à 15:01:37    

Un exemple ici: http://php.developpez.com/faq/?page=securite
 
Si ça t'aide pas trop, tu peux aussi demander dans la section "réseaux grand public".
 

Reply

Marsh Posté le 26-04-2009 à 02:56:36    

J'imagine que c'est un bot qui poste ces messages. Donc tu peut aussi créer un champ texte caché via CSS, et si il est remplie tu n'envoie pas le mail.
 
Ce piège a con est au moins aussi efficace que les captcha !

Reply

Marsh Posté le 29-04-2009 à 19:08:28    

High Plains Drifter a écrit :

J'imagine que c'est un bot qui poste ces messages. Donc tu peut aussi créer un champ texte caché via CSS, et si il est remplie tu n'envoie pas le mail.
 
Ce piège a con est au moins aussi efficace que les captcha !


 
ah là je suis content d'avoir lu ce post, tu m'apprend quelque chose d'intéressant, je te remercie. Les captcha, c'est bien, mais j'ai moi même parfois du mal a les remplir. Je ne voudrais pas faire subir ça à d'autres en créant un formulaire.
Je prend note.

Reply

Marsh Posté le 29-04-2009 à 19:09:45    

Je confirme cette pratique très courant en django ;)

Reply

Marsh Posté le 29-04-2009 à 22:35:06    

Un exemple concret svp ?

Reply

Marsh Posté le 30-04-2009 à 08:25:31    

Tu rajoute un champ dans ton formulaire, vide par défaut. Tu bricole ta CSS pour qu'il n'appraisse pas (display: none?) et quand tu fais ton poste, au lieu d'envoyer le mail directement tu vérifie si ce champ contient quelque chose. Si c'est le cas tu n'envoie pas le mail.

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed