在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):C0nw0nk/Nginx-Lua-Anti-DDoS开源软件地址(OpenSource Url):https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS开源编程语言(OpenSource Language):Lua 100.0%开源软件介绍(OpenSource Introduction):Nginx-Lua-Anti-DDoSA Anti-DDoS script to protect Nginx web servers using Lua with a Javascript based authentication puzzle inspired by Cloudflare I am under attack mode I built my own Anti-DDoS authentication HTML page puzzle intergrating my Lua, Javascript, HTML and HTTP knowledge. Mitigate a DDoS attack of any size using my free DDoS protection. Don't get ddos attacked! If you're under attack and use my script during the attack, visitors will receive an interstitial page for about five seconds while I analyze the traffic to make sure it is a legitimate human visitor. This can protect you from many different forms of DDoS works with both HTTP and HTTPS / SSL traffic. No limit on attack size Uptime guarantee Features :These are some of the features I built into the script so far. SecurityI am Under Attack Mode (DDoS Authentication HTML Page) IP Address Whitelist IP Subnet Ranges Whitelist IP Address Blacklist IP Subnet Ranges Blacklist User-Agent Whitelist User-Agent Blacklist Protected area / Restricted access field username / password box to restrict access to sites / paths. WAF (Web Application Firewall)IPv4 and IPv6 blocking and whitelisting including subnet ranges. User-Agent blocking and whitelisting to block bad bots and exploits / scanners. Ability to inspect POST Data / Fields and block malicious POST requests / exploits. Ability to inspect URL for malicious content SQL/SQI Injections XSS attacks / exploits. Ability to inspect query strings and arguements for malicious content / exploits. Ability to inspect all Request Headers provided by the client connecting. Ability to inspect cookies for exploits. Caching Speed and PerformanceQuery String Sorting Query String Whitelist Query String Removal (It is a blacklist but it will just drop / remove the argument from the URL not block the request) Minification / Compression of files removing white space and nulled out code / lines JS JavaScript, CSS Stylesheets, HTML etc Customization of error pages responses and webpage outputsCustom error page interception to replace with your own error pages Hide Web application errors such as PHP errorrs MySQL errors it will intercept them and display a custom error page instead of showing visitors sensative information Modify webpage outputs to replace contents on pages / files Information :If you have any bugs issues or problems just post a Issue request. https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS/issues If you fork or make any changes to improve this or fix problems please do make a pull request for the community who also use this. https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS/pulls Usage / Installation :Edit settings inside https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS/blob/master/lua/anti_ddos_challenge.lua#L55 Add this to your Nginx configuration folder.
Once installed into your Add this to your HTTP block or it can be in a server or location block depending where you want this script to run for individual locations the entire server or every single website on the server.
Example nginx.conf :This will run for all websites on the nginx server
This will make it run for this website only
This will run in this location block only
Other setup optionshttps://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS/wiki For setting up the script to run with Tor .onion services, Cloudflares proxy services, Configuration options of the script view the wiki. Requirements :NONE! :D You only need Nginx + Lua to use my scripts. Where can you download Nginx + Lua ?Openresty provide Nginx + Lua builds for Windows Linux etc here. https://openresty.org/en/download.html Nginx4windows has Windows specific builds with Lua here. Or you can download the source code for Nginx here and compile Nginx yourself with Lua. https://nginx.org/en/download.html About :I was inspired to create this because of Cloudflare feature "I'm Under Attack Mode" https://www.cloudflare.com/ There are similar sites and services like BitMitigate but I prefer my own script over their methods.
I love that feature so much ontop of having it enabled on all my Cloudflare proxied sites I decided to make it into a feature on my own servers so the traffic that hits my servers without coming from Cloudflares network is kept in check and authenticated! (Every little helps right!) Thank you to @Cloudflare for the inspiration and your community for all the love, A big thanks to the @openresty community you guys rock Lua rocks you are all so awesome! Lets build a better internet together! Where Speed, Privacy, Security and Compression matter! Here are links to my favorite communities :) https://community.cloudflare.com/ Protected attack types :
Features :Advanced DDoS Attack ProtectionMy script gives you Unmetered DDoS mitigation to maintain performance and availability for free Denial of Service attacks continue to grow in sophistication and force: more distributed, greater volumes of traffic, and encroaching on the application layer. A successful attack increases unnecessary costs on your infrastructure and IT/security staff. More importantly, it hurts your revenue, customer satisfaction, and brand. To combat attacks and stay online, you’ll need a solution that’s resilient scalable, and intelligent. Common Types of DDoS AttacksBlock Malicious Bot AbuseBlock abusive bots from damaging Internet properties through content scraping, fraudulent checkout, and account takeover. Prevent Customer Data BreachPrevent attackers from compromising sensitive customer data, such as user credentials, credit card information, and other personally identifiable information. Layered Security Defenselayered security approach combines multiple DDoS mitigation capabilities into one service. It prevents disruptions caused by bad traffic, while allowing good traffic through, keeping websites, applications and APIs highly available and performant. HTTP Flood (Layer 7)HTTP flood attacks generate high volumes of HTTP, GET, or POST requests from multiple sources, targeting the application layer, causing service degradation or unavailability. Defend against the largest attacks Shared Network Intelligence / Collective IntelligenceWith every new property, contributor and person using this script your help and contributions to this script makes everyones network safer. You are helping identify and block new and evolving threats across the entire internet back bone / infrastructure. No Performance TradeoffsEliminate security induced latencies by integrating my script with your servers. You do not need to rely on third party services like Cloudflare, BitMitigate, Sucuri or other such CDN Cloud distributed networks or companies anymore I have given you the tool for free. Web Application Firewallenterprise-class web application firewall (WAF) protects your Internet property from common vulnerabilities like SQL injection attacks, cross-site scripting, and cross-site forgery requests and protectects your existing infrastructure. Rate LimitingControl to block suspicious visitors Rate Limiting protects against denial-of-service attacks, brute-force login attempts, and other types of abusive behavior targeting the application layer. Rate Limiting provides the ability to configure thresholds, define responses, and gain valuable insights into specific URLs of websites, applications, or API endpoints. It adds granular HTTP/HTTPS traffic control. This also reduces bandwidth costs by eliminating unpredictable traffic spikes or attacks. Protect any Web ApplicationThis script can protect every web application ever built.
Tor network / Project .onion :You can also use this script to protect servers and sites on the Tor network preventing ddos on .onion links. It can help stop attacks on the deepweb / darkweb aswell as on the mainline internet for those who browse your site through the tor browser it makes sure they are legitimate users. HTTP(S) / HTTP2 / HTTP3 / QUIC :So with modern internet protocols yes this script does work with all of them! It can protect both encrypted and unencrypted connections and traffic served over TCP aswell as UDP the new method for HTTP3/QUIC connections. Works with :Nginx Nginx + Lua Openresty Custom Nginx builds with Lua compiled Litespeed / Litespeedtech as can be seen here https://openlitespeed.org/kb/openlitespeed-lua-module/ the reason this works with Litespeed Lua is because they use Openresty Lua builds on their server as can be understood here https://openlitespeed.org/kb/openlitespeed-lua-module/#Use |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论