https://github.com/hanke0/go2jail
Go2Jail is a daemon used to ban hosts attempting to attack your server.
https://github.com/hanke0/go2jail
anti-bot attack-defense security
Last synced: 11 months ago
JSON representation
Go2Jail is a daemon used to ban hosts attempting to attack your server.
- Host: GitHub
- URL: https://github.com/hanke0/go2jail
- Owner: hanke0
- License: mit
- Created: 2025-04-15T02:24:08.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-06T15:38:56.000Z (about 1 year ago)
- Last Synced: 2025-06-19T19:42:40.608Z (12 months ago)
- Topics: anti-bot, attack-defense, security
- Language: Go
- Homepage:
- Size: 221 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go2Jail
Go2Jail is a daemon service designed to protect your server by automatically detecting and banning malicious hosts that attempt to attack your server.
## Features
- Real-time server log monitoring
- Automatic malicious behavior detection
- Multiple banning strategies
- Configurable rule system
- IP geolocation lookup
- Email notification system
- HTTP statistics interface
## Installation
### From Source
```bash
git clone https://github.com/yourusername/go2jail.git
cd go2jail
go build
```
### Using Pre-built Binaries
Download the appropriate binary for your system from the [Releases](https://github.com/hanke0/go2jail/releases) page.
## Usage
### Running the Daemon
```bash
go2jail run -c /path/to/config
```
### Testing Configuration
```bash
go2jail test-config -c /path/to/config
```
### Testing Rules
```bash
go2jail test
```
### Testing Regular Expressions
```bash
go2jail regex -match "pattern" -ignore "pattern"
```
### Testing Email Notifications
```bash
go2jail test-mail
```
### IP Location Lookup
```bash
go2jail ip-location
```
## Configuration
The configuration file uses YAML format and includes the following sections:
- Logging configuration
- Rule configuration
- Email notification settings
- IP geolocation settings
- HTTP statistics interface settings
For detailed configuration examples, please refer to the `examples` directory.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.