Join the community today
Become a Member

Nginx Custom Nginx Module

Discussion in 'Nginx and PHP-FPM news & discussions' started by Edward Williams, Mar 25, 2020.

  1. Edward Williams

    Edward Williams New Member

    2
    0
    1
    Mar 24, 2020
    Ratings:
    +0
    Local Time:
    7:47 AM
    Last
    Hello,
    My name is Edward Williams, and I am part of a security company that is about to open.
    We are based on Anti-DDoS & optimization, with several categories such as Content Delivery Network (CDN), cPanel Web Hosting, TCP Proxy, etc...
    At the moment our security team is inaccessible because of all these problems with the virus (corona), and we need a system as soon as possible.
    We have 1 JavaScript challenge that is active on nginx through the "challenge1 on" function on nginx conf (inside "server {}" block, like testcookie).
    And we need 1 module for nginx (made in source), or made in lua that does the following thing:
    If 1 website reaches 100 connections per second, then turn on the function "challenge on".
    In other words this is a switch that enables protection when an attack its detect (100 connections per second +).
    Anyone able to do something like that? (You'll be paid, nobody works for free!)

    Best regards,
    Edward Williams

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod 123.09beta01 and newer optionally supports Nginx Lua module to support using Lua with Nginx via setting these 2 variables in persistent config file /etc/centminmod/custom_config.inc prior to running centmin.sh menu option 4 to recompile/update Nginx
    Code (Text):
    NGXDYNAMIC_LUA='y'
    ORESTY_LUANGINX='y'
    

    Then you're free to code your own Lua code to use with Nginx. But there is no pre-made Lua code for what you want. Centmin Mod Nginx provides the tools for you to use Lua. Writing Lua code is left to end users. So I'll let other users chime in on if/how they use Lua etc.

    Example of when Lua Nginx enabled (along with other optional modules too for GeoIP2, Video mp4/flv, brotli, redis2, modsecurity) via the 2 persistent config variables. Currently, using lua nginx module v0.10.16rc5