Discover Centmin Mod today
Register Now

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

    Mar 24, 2020
    Local Time:
    7:30 AM
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    5:30 PM
    Nginx 1.21.x
    MariaDB 10.x
    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/ prior to running menu option 4 to recompile/update Nginx
    Code (Text):

    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