- Moderatör
- #1
We Love TESLA ⚡️
Kurucu
1-
Find http { and paste the lines as below.
2-Now open your virtual host file located in /etc/nginx/conf.d. Replace yourdomainname.com.conf with your actual domain config file.
Find location / { and above that add the lines below
3- Restart NGINX
Kod:
cd /etc/nginx
nano nginx.conf
Find http { and paste the lines as below.
Kod:
# MHDOS
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=7r/s;
# MHDOS
limit_conn_status 403;
limit_req_status 403;
2-Now open your virtual host file located in /etc/nginx/conf.d. Replace yourdomainname.com.conf with your actual domain config file.
Kod:
cd /etc/nginx/conf.d
nano yourdomain.com.conf
Find location / { and above that add the lines below
Kod:
# MHDOS
limit_conn conn_limit_per_ip 10;
limit_req zone=req_limit_per_ip burst=5 nodelay;
client_body_timeout 5s;
client_header_timeout 5s;
3- Restart NGINX
Kod:
service nginx restart
Son düzenleme: