Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch update tools/autoprotect.sh custom rule for sucuri-scanner wp plugin in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 9, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    2:58 PM
    Nginx 1.13.x
    MariaDB 5.5
    update tools/autoprotect.sh custom rule for sucuri-scanner wp plugin in 123.09beta01

    for detected .htaccess auto conversion to nginx rewrite deny all rule

    .htaccess
    Code (Text):
    Order Deny,Allow
    Deny from all
    
    <FilesMatch "\.(gif|jpe?g|png|css|js)$">
      Order Allow,Deny
      Allow from all
    </FilesMatch>
    

    auto converted nginx rule
    Code (Text):
    # /home/nginx/domains/domain1.com/public/wp-content/plugins/sucuri-scanner
    
    location ~ ^/wp-content/plugins/sucuri-scanner/ {
      location ~ ^/wp-content/plugins/sucuri-scanner/(.+/)?(.+)\.(gif|jpe?g|png|css|js)$ { allow all; }
      deny all;
    }
    
    # /home/nginx/domains/domain1.com/public/wp-content/uploads/sucuri
    location ~* ^/wp-content/uploads/sucuri/ { deny all; }
    


    Continue reading...

    123.09beta01 branch