1
1
# Gatekeeper
2
2
3
- [ ![ Build Status] ( https://img.shields.io/travis/ secondtruth/gatekeeper.svg )] ( https://travis-ci.org /secondtruth/gatekeeper )
3
+ [ ![ Build Status] ( https://img.shields.io/github/actions/workflow/status/ secondtruth/gatekeeper/tests.yml )] ( https://github.com /secondtruth/gatekeeper/actions/workflows/tests.yml )
4
4
[ ![ Scrutinizer] ( http://img.shields.io/scrutinizer/g/secondtruth/gatekeeper.svg )] ( https://scrutinizer-ci.com/g/secondtruth/gatekeeper )
5
- [ ![ Coverage] ( http ://img.shields.io/scrutinizer/coverage/g /secondtruth/gatekeeper.svg )] ( https://scrutinizer-ci.com/g /secondtruth/gatekeeper )
6
- [ ![ License] ( http ://img.shields.io/packagist/l /secondtruth/gatekeeper.svg)] ( https://packagist.org/packages/secondtruth/gatekeeper )
5
+ [ ![ Coverage] ( https ://img.shields.io/codecov/c/gh /secondtruth/gatekeeper?token=pmX6z4UHDJ )] ( https://codecov.io/gh /secondtruth/gatekeeper )
6
+ [ ![ License] ( https ://img.shields.io/github/license /secondtruth/gatekeeper.svg?color=blue )] ( https://packagist.org/packages/secondtruth/gatekeeper )
7
7
8
8
The Gatekeeper library protects websites from spam and other attacks. It prevents bad bots from delivering their junk, and in many cases,
9
9
from ever reading your site in the first place.
10
10
11
-
12
11
## Description
13
12
14
13
Welcome to a whole new way of keeping your service, forum, wiki or content management system free of spam and other attacks.
@@ -24,7 +23,6 @@ Whenever possible, you should run it in combination with a more traditional spam
24
23
25
24
The library is inspired by the ** Bad Behavior** anti-spam system by ** Michael Hampton** .
26
25
27
-
28
26
## Usage
29
27
30
28
Include the vendor autoloader and use the classes:
@@ -65,7 +63,6 @@ $gatekeeper->addACL(new IPAddressACL($allowed, $denied));
65
63
$gatekeeper->run($request, $screener);
66
64
```
67
65
68
-
69
66
## Installation
70
67
71
68
### Install via Composer
@@ -74,13 +71,13 @@ $gatekeeper->run($request, $screener);
74
71
75
72
To install the library, run the following command and you will get the latest development version:
76
73
77
- $ php composer.phar require secondtruth/gatekeeper:dev-master
78
-
74
+ ``` bash
75
+ composer require secondtruth/gatekeeper:dev-master
76
+ ```
79
77
80
78
## Requirements
81
79
82
- * You must have at least PHP version 8.1 installed on your system.
83
-
80
+ - You must have at least PHP version 8.1 installed on your system.
84
81
85
82
## Author, Credits and License
86
83
@@ -91,4 +88,4 @@ Based on the work of:
91
88
92
89
* Michael Hampton
93
90
94
- Thanks to [ all other Contributors ] ( https://github.com/secondtruth/wumbo/graphs/contributors ) !
91
+ Thanks to [ all other contributors ] ( https://github.com/secondtruth/wumbo/graphs/contributors ) !
0 commit comments