webites/simple-captcha

Simple PHP tools for Captcha - user filtering

0.1.2 2024-06-23 05:41 UTC

This package is not auto-updated.

Last update: 2024-10-14 05:17:25 UTC


README

Lightweight library for filter and block spam bots with simple captcha. You can add captcha to your form, middleware or any other place in your project.

Installation

composer require webites/simple-captcha

Usage

You have any options to use this library.

Block by IP

Use class BlockByIp to filter IP addresses. This method automatically block user with 403 status code.

use Webites\SimpleCaptcha\IP\Infrastructure\Blocker\BlockByIp;

( new BlockByIp() )
    ->filter(['10.10.10.10', '10.10.10.11']);