PHPackages                             figleaf/figleaf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. figleaf/figleaf

ActiveLibrary[Security](/categories/security)

figleaf/figleaf
===============

Keep bots and unwanted humans away from your website

v1.8.0(3y ago)132MITPHPPHP &gt;=7.0.0

Since Jan 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/phrenotype/figleaf)[ Packagist](https://packagist.org/packages/figleaf/figleaf)[ RSS](/packages/figleaf-figleaf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

FigLeaF
=======

[](#figleaf)

[![license](https://camo.githubusercontent.com/3dea3201c9d4f0369b432d3e2712b1b6a29e197aeeec2558c91908a7afbac128/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706872656e6f747970652f6669676c656166)](https://camo.githubusercontent.com/3dea3201c9d4f0369b432d3e2712b1b6a29e197aeeec2558c91908a7afbac128/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706872656e6f747970652f6669676c656166)[![contributors](https://camo.githubusercontent.com/6f32d2330023861c6004fd3b51c27e3c030f878c348287e7309d5603bc3e02f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f706872656e6f747970652f6669676c656166)](https://camo.githubusercontent.com/6f32d2330023861c6004fd3b51c27e3c030f878c348287e7309d5603bc3e02f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f706872656e6f747970652f6669676c656166)[![code size](https://camo.githubusercontent.com/bbe690bb04123d0818c9d8c93f37efdcf7ccc22c47c9b2580a6f0bbdd999fb4e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f706872656e6f747970652f6669676c656166)](https://camo.githubusercontent.com/bbe690bb04123d0818c9d8c93f37efdcf7ccc22c47c9b2580a6f0bbdd999fb4e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f706872656e6f747970652f6669676c656166)[![downloads](https://camo.githubusercontent.com/80bde06bc4cd1a236474d6dc1b5f1c8af76751e546e935aa749c15734cd40124/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f63686173652f6669676c656166)](https://camo.githubusercontent.com/80bde06bc4cd1a236474d6dc1b5f1c8af76751e546e935aa749c15734cd40124/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f63686173652f6669676c656166)

This library keeps bots and unwanted humans from making requests to your website.

It offers full csrf token generation and validation, without external dependencies.

With this, a brute force attack is only possible with browser automation, hence increased cost.

Install
-------

[](#install)

`composer require figleaf/figleaf`

Usage
-----

[](#usage)

To generate a csrf token for some random use ( you decide )

```
