An open API service indexing awesome lists of open source software.

https://github.com/vstanchev/wafty

Simple firewall that prevents XSS, SQLi, filters by IP and blocks file uploads
https://github.com/vstanchev/wafty

go golang libinjection security waf

Last synced: 6 months ago
JSON representation

Simple firewall that prevents XSS, SQLi, filters by IP and blocks file uploads

Awesome Lists containing this project

README

          

## Simple Web Application Firewall

## Features
- XSS and SQL injection detection and blocking
- Whitelist/blacklist of IP Addresses
- Block file uploads by file extension

## Configuration
Configuration is in `config.toml`

```toml
# Forward requests to this URL
Upstream = "http://127.0.0.1:8000"

# Listen for requests on this address
ListenAddress = ":8080"

# Block or allow only these IP addresses, allowed modes are "whitelist" and "blacklist"
IpFilterMode = "whitelist"

# Array of IP Addresses that are whitelisted/blacklisted
IpAddresses = [
"127.0.0.1"
]

# Block file uploads by extension
DenyExtensions = [
"php",
"aspx",
"sh",
"html",
"jsp"
]
```

### To run

```bash
$ make run
```

### Execute test scripts with
```bash
$ make run-tests
```