# C0nw0nk/Nginx-Lua-Anti-DDoS

A Anti-DDoS script to protect Nginx web servers using Lua with a HTML Javascript based authentication puzzle inspired by Cloudflare I am under attack mode an Anti-DDoS authentication page protect yourself from every attack type All Layer 7 Attacks Mitigating Historic Attacks DoS DoS Implications DDoS All Brute Force Attacks Zero day exploits Social Engineering Rainbow Tables Password Cracking Tools Password Lists Dictionary Attacks Time Delay Any Hosting Provider Any CMS or Custom Website Unlimited Attempt Frequency Search Attacks HTTP Basic Authentication HTTP Digest Authentication HTML Form Based Authentication Mask Attacks Rule-Based Search Attacks Combinator Attacks Botnet Attacks Unauthorized IPs IP Whitelisting Bruter THC Hydra John the Ripper Brutus Ophcrack unauthorized logins Injection Broken Authentication and Session Management Sensitive Data Exposure XML External Entities (XXE) Broken Access Control Security Misconfiguration Cross-Site Scripting (XSS) Insecure Deserialization Using Components with Known Vulnerabilities Insufficient Logging & Monitoring Drupal WordPress Joomla Flash Magento PHP Plone WHMCS Atlassian Products malicious traffic Adult video script avs KVS Kernel Video Sharing Clip Bucket Tube sites Content Management Systems Social networks scripts backends proxy proxies PHP Python Porn sites xxx adult gaming networks servers sites forums vbulletin phpbb mybb smf simple machines forum xenforo web hosting video streaming buffering ldap upstream downstream download upload rtmp vod video over dl hls dash hds mss livestream drm mp4 mp3 swf css js html php python sex m3u zip rar archive compressed mitigation code source sourcecode chan 4chan 4chan.org 8chan.net 8ch 8ch.net infinite chan 8kun 8kun.net anonymous anon tor services .onion torproject.org nginx.org nginx.com openresty.org darknet dark net deepweb deep web darkweb dark web mirror vpn reddit reddit.com adobe flash hackthissite.org dreamhack hack hacked hacking hacker hackers hackerz hackz hacks code coding script scripting scripter source leaks leaked leaking cve vulnerability great firewall china america japan russia .gov government http1 http2 http3 quic q3 litespeedtech litespeed apache torrents torrent torrenting webtorrent bittorrent bitorrent bit-torrent cyberlocker cyberlockers cyber locker cyberbunker warez keygen key generator free irc internet relay chat peer-to-peer p2p cryptocurrency crypto bitcoin miner browser xmr monero coinhive coin hive coin-hive litecoin ethereum cpu cycles popads pop-ads advert advertisement networks banner ads protect ovh blazingfast.io amazon steampowered valve store.steampowered.com steamcommunity thepiratebay lulzsec antisec xhamster pornhub porn.com pornhub.com xhamster.com xvideos xvdideos.com xnxx xnxx.com popads popcash cpm ppc

Repository: https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS
Canonical: https://ross.abutalabs.com/products/nginx-lua-anti-ddos
Language: Lua
License: MIT
License Family: permissive
Topics: cloudflare, anti-ddos, ddos, dos, denial-of-service, distributed-denial-of-service, javascript, html, anti-ddos-script, ddos-attack, traffic, nginx-lua, protection, exploit, security, lua, ddos-mitigation, ddos-attacks, waf, antiddos
Last push: 2026-08-19T12:09:17+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 2569, "days_push": 14, "days_rel": 14, "gap_med": 3, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1628, forks 308 (observed 2026-08-28T04:05:13.270330+00:00)

## What it is
A Lua-based Anti-DDoS script for Nginx that presents a Cloudflare-style JavaScript authentication puzzle to filter out bots and mitigate Layer 7 DDoS attacks. It includes WAF features such as IP/User-Agent blacklists, rate limiting, and POST data inspection.

## Use cases
- protect nginx from ddos attacks
- mitigate layer 7 flooding without cloudflare
- block bad bots and scanners on nginx
- add an under attack mode challenge page to my site
- rate limit abusive ip addresses on nginx
- filter malicious post data with a waf
- self-host ddos protection for video streaming sites

## When to choose
- you self-host nginx/openresty and want free DDoS mitigation without a proxy service
- you need Cloudflare-style interstitial challenge pages on your own infrastructure
- you want WAF features like IP whitelisting, User-Agent filtering, and POST inspection built into nginx

## When to avoid
- you use a web server other than nginx/openresty
- you need managed, network-layer DDoS scrubbing at massive scale
- you cannot run Lua modules in your nginx build

## Facets
- artifact type: plugin
- maturity: active
- function: security, middleware, rate-limiting, caching
- domain: security, web-development, self-hosted, networking
- platform: lua, self-hosted
- tags: anti-ddos, waf, nginx-lua, ddos-mitigation, cloudflare-inspired, javascript-challenge, rate-limiting, ip-blacklist, user-agent-filtering, fail2ban, nginx, linux, web-server

## Member repositories
- C0nw0nk/Nginx-Lua-Anti-DDoS (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:13.270330+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:48:18.947022+00:00, confidence not recorded.
  - readme: https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS (fetched 2026-08-28T04:05:13.270330+00:00, sha 3e37bbdab489)
- Data as of 2026-08-30T08:39:29.467469+00:00.
