Welcome to Centmin Mod Community
Become a Member

Nginx Nginx Ultimate Bad Block Blocker

Discussion in 'Install & Upgrades or Pre-Install Questions' started by EckyBrazzz, Apr 14, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    11:05 AM
    Latest
    Latest
    Followed the Guide on Security - Nginx Ultimate Bad Block Blocker with sucses and want to ask if it's possible to add this to the vhost.conf by default.


    Code (Text):
      # uncomment ddos.conf and blockbots.conf include
      # if using the ultimate badbot blocker guide after testing
      # https://community.centminmod.com/threads/nginx-ultimate-bad-block-blocker.14413/
      #include /usr/local/nginx/conf/ultimate-badbot-blocker/bots.d/ddos.conf;
      #include /usr/local/nginx/conf/ultimate-badbot-blocker/bots.d/blockbots.conf;
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,900
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:05 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  3. diy

    diy Member

    50
    32
    18
    Jan 14, 2019
    USA
    Ratings:
    +48
    Local Time:
    10:05 AM
    nginx 1.19.x
    MariaDB 10.4.x
    If I remember right just uncomment those two lines. I've been using the UBBB for a few months now and all of the configs have been altered, so my memory might not be 100% reliable. Run nginx -t after every config option edit and you should be fine though.

    After some customization and tuning the Ultimate Bad Bot Blocker works pretty good, in my opinion. It gets updated almost every day though (nginx gets restarted after each update) if you've setup the cronjob updater, which might not be desirable for many. One of my sites is a research honeypot that I use to gather knowledge to secure my main sites so it doesn't matter to me if something goes wrong during an update...
     
  4. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    11:05 AM
    Latest
    Latest
    @diy I know that. But for the ease of use I asked to put these 5 lines by default in the vhost.conf so that people who need it only have to uncomment those last two lines.

    It's the same as the people that use ngx_pagespeed. It's there by default, so people that want to use that only have to uncomment the lines to activate ngx_pagespeed and their set.
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,900
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:05 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah as ultimate bad block blocker isn't included in centmin mod by default, then those lines wouldn't be included either unlike ngx_pagespeed.