https://github.com/hormold/anti-ddos
https://github.com/hormold/anti-ddos
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hormold/anti-ddos
- Owner: Hormold
- Created: 2023-02-09T15:09:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T23:30:39.000Z (over 3 years ago)
- Last Synced: 2025-06-11T04:16:32.436Z (about 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automatic managmant of Cloudflare's firewall rules (rate limits)
System automatically manages Cloudflare's firewall rules (rate limits) to prevent DDoS attacks.
## /etc/nginx/nginx.conf modifications
It nessesary to add the following lines to the `http` section of the `/etc/nginx/nginx.conf` file:
```
log_format vhost '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_host" "$http_user_agent"';
access_log /var/log/nginx/access.log vhost;
```
This modification is required to make the system work properly, because it uses the `access.log` file to detect DDoS attacks.