Bienvenido, Invitado
Recordarme

TEMA:

Calendar problem and spam 6 meses 19 horas antes #266240

  • Autor del tema
  • Dazzlink
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 12
  • Gracias recibidas: 0
Hi, I have created a form using Room Booking Forms for BF. During past months I often receive spam messages through the form. What I noticed was that in 2 fields (calendar for arrival and departure dates) the dates were from the past (1976 - 12-11).

So I added in validation (custom) this for check in date

function ff_checkindate_validation(element, message)
{
if(element.value.split("-").length != 3){return message == '' ? element.name+" faild in my test.n" : message}

var vDate = new Date(Number( element.value.split("-")[0]),Number(element.value.split("-")[1]-1),Number(element.value.split("-")[2]),0,0,0).getTime();


var today = new Date();

today.setHours(0);
today.setMinutes(0);
today.setSeconds(0);
today.setMilliseconds(0);
today = today.getTime();

if(vDate < today)
{
if (message=='') message = element.name+" faild in my test.n";
return message;
}
return '';
}

and this for check out date

function ff_checkoutdate_validation(element, message)
{
if(element.value.split("-").length != 3){return message == '' ? element.name+" faild in my test.n" : message}

var vDate = new Date(Number( element.value.split("-")[0]),Number(element.value.split("-")[1]-1),Number(element.value.split("-")[2]),0,0,0).getTime();


var today = new Date();

today.setHours(0);
today.setMinutes(0);
today.setSeconds(0);
today.setMilliseconds(0);
today = today.getTime();

if(vDate < today)
{
if (message=='') message = element.name+" faild in my test.n";
return message;
}
return '';
}

The problem is that I still receive spam messages with older dates, even though in my tests if I add past dates there I get an error message and cannot submit form.

In addition, there is an increase of spam in most forms I have in several websites. All forms have v3 recaptcha. Is this normal?

Thank you in advance.
Antonis

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Calendar problem and spam 6 meses 18 horas antes #266243

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 2498
  • Karma: 2
  • Gracias recibidas: 135
Hi,

it is hard to stop spam with 100%, but we can prevent spam and stop with great success with this below tools:

1) add validation for each field

2) protect site with:
www.vi-solutions.de/en/joomla-plugin-plgspambotcheck

3) integrate:
www.projecthoneypot.org/

If you want you can send me backend info and access data that I can test your validation element on email ma@evolutio.hr

Regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
Moderadores: ForumSupport
Tiempo de carga de la página: 0.050 segundos