67 lines
2.5 KiB
Markdown
67 lines
2.5 KiB
Markdown
# Nginx L7 DDoS Protection! :boom: :zap: [](https://github.com/theraw/The-World-Is-Yours/actions/workflows/docker-image.yml)
|
|
Now easier then before, you will have to compile only Nginx, Rest of modules come pre-compiled.
|
|

|
|
|
|
- [x] Support Ubuntu 20.04.
|
|
- [x] Support Ubuntu 22.04.1
|
|
|
|
-- Security Dynamic Modules.
|
|
- [x] ModSecurity Support.
|
|
- [x] Naxsi Support.
|
|
- [x] Lua Support.
|
|
- [x] Cookie Based Challenge.
|
|
- [x] [ALL MOD LIST](https://github.com/theraw/The-World-Is-Yours/tree/u22.04.1/static/mod/)
|
|
- [x] [View nginx compile options](https://github.com/theraw/The-World-Is-Yours/blob/u22.04.1/static/builder)
|
|
|
|
How do these 3 modules work together? Well L7 will block all or most of bots, however modSecurity and Naxsi take priority over cookie challenge!
|
|
So if its a offensive request that modsecurity or naxsi detect it as such then these 2 will deal with that request otherwise cookie challenge will appear.
|
|
|
|
## INSTALLATION
|
|
|
|
1. **`apt-get install build-essential libssl-dev curl nano wget zip unzip sudo git psmisc -y`**
|
|
|
|
2. **`curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/install > install; bash install`**
|
|
|
|
## Basic info.
|
|
|
|
```
|
|
=> Nginx Folder = /nginx/
|
|
=> --conf-path = /nginx/nginx.conf
|
|
=> --pid-path = /var/run/nginx.pid
|
|
=> --user = nginx
|
|
=> --group = nginx
|
|
=> --sbin-path = /usr/sbin/nginx
|
|
=> --error-log-path = /var/log/nginx/error.log
|
|
|
|
// YOUR NGINX IS LOCATED AT /nginx NOT /etc/nginx
|
|
```
|
|
|
|
|
|
## KEEP IN MIND!
|
|
1. You're trading perfomance for security.
|
|
2. If your server provider does not have anti-ddos your IPTABLES will fail to keep the bans, and your server may be offline in cases of big attacks.
|
|
3. This is not a free script that will do everything for you. Read Modules Documentations about how to use them.
|
|
|
|
## Contributors
|
|
|
|
Special thanks to the following contributors:
|
|
|
|
<!-- prettier-ignore-start -->
|
|
<!-- markdownlint-disable -->
|
|
<table>
|
|
<tr>
|
|
<td align="center">
|
|
<a href="https://github.com/theraw">
|
|
<img src="https://avatars.githubusercontent.com/u/32969774?v=4" width="80" alt=""/>
|
|
<br /><sub><b>ƬHE ЯAW ☣</b></sub>
|
|
</a>
|
|
</td>
|
|
<td align="center">
|
|
<a href="https://github.com/lucthienphong1120">
|
|
<img src="https://avatars.githubusercontent.com/u/90561566?v=4" width="80" alt=""/>
|
|
<br /><sub><b>Lục Thiên Phong</b></sub>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|