Jump to content

[solved] Spam via Contact ...?


Recommended Posts

Bonjour à tous.

Je sais pas si c'est le bon lieu pour demander conseil sur ce point mais je tente ma chance.

Mon site a planté et en regardant les fichiers log je m'aperçoit qu'aujourd'hui j'ai environ 170000 fois une ligne du genre.

 "POST /contactez-nous HTTP/1.1" 500 2454 monsite.org "https://monsite.org/contactez-nous" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" "-"

Comment c'est possible ?
Je suis pas super calé en spam et piratage mais là y a un souci non... ? :)

Merci d'avance !

 

Edited by Pat_07 (see edit history)
Link to comment
Share on other sites

désolé j'ai une question super idiote mais le script à inserer dans le fichier contact-form.tpl il faut le mettre avant les commetaires ou après le bout de code ?...

 

j'ai un truc du genre
 

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
* etc...
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{capture name=path}{l s='Contact'}{/capture}

{if isset($confirmation)}

etc...

 

Link to comment
Share on other sites

Ok

Le script utilise le thème default-bootstrap comme modèle et la classe du formulaire avec cette partie du code:

var $forms = $('form.contact-form-box');

Chez vous le code de votre thème est différent, donc remplacez cette ligne dans le script par:

var $forms = $('form.form-horizontal');

  • Like 1
Link to comment
Share on other sites

il y a 1 minute, Pat_07 a dit :

Ok je crois que j'ai compris il me manquait class "contact-form-box" sur ma balise form !!!

Vous pouvez aussi rajouter effectivement cette classe mais attention que cela ne modifie pas le rendu de la page si une règle css existe pour cette classe^^

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...