ES

@core / antispam

1.1.0 ▾
verificadoMIT
GitHub

Protección antispam para formularios públicos: honeypot, tiempo firmado, Turnstile o hCaptcha y rate limit en Postgres

Código9 archivosContexto~722 tokensescaneo superado

El árbol exacto que se inyectará, tras aplicar .genpmignore. Anclado a

src/lib/antispam/react.tssolo lectura · 0328b98
// `<AntispamFields />`: campos ocultos para formularios HTML (trampa y hora firmada). Componente de servidor (async).
import { createElement as h, Fragment, type ReactNode } from 'react';
import { formTimingToken, HONEYPOT_FIELD, honeypotProps, TIMING_FIELD } from './checks.ts';

export async function AntispamFields(): Promise<ReactNode> {
  return h(Fragment, null, h('input', { ...honeypotProps, key: HONEYPOT_FIELD }), h('input', { type: 'hidden', name: TIMING_FIELD, value: await formTimingToken(), key: TIMING_FIELD }));
}

Reportar @core/antispam

Inicia sesión con GitHub para reportar un paquete.