Want more timely Centmin Mod News Updates?
Become a Member

Autoprotect + Cloudflare Wordpress Plugin - 403

Discussion in 'Blogs & CMS usage' started by pjrobertson, Apr 6, 2023.

  1. pjrobertson

    pjrobertson New Member

    20
    4
    3
    Feb 7, 2021
    Ratings:
    +8
    Local Time:
    7:40 AM
    The Cloudflare plugin loads various CSS/JS/image files from the plugin folder. The .htaccess file here shows what: https://raw.githubusercontent.com/cloudflare/Cloudflare-WordPress/master/.htaccess

    Autoprotect is blocking the folder entirely with the code:

    Code (Text):
    location ~* ^/wordpress/wp-content/plugins/cloudflare/ { allow 127.0.0.1; deny all; }
    



    Which means the Cloudflare plugin settings page cannot be loaded. I fixed this by putting the following into my Nginx .conf file, but perhaps autoprotect.sh can be updated to accommodate this.

    Code (Text):
    location ~* ^/wordpress/wp-content/plugins/cloudflare/ {
            location ~* .(js|css)$ {
                    allow all;
            }
            location ~* .(png|svg|gif|jpg|webp)$ {
                    allow all;
            }
            location ~* .(eot|ttf||otf|woff|woff2)$ {
                    allow all;
            }
    }
    


    Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:40 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    thanks for the heads up!
     
  3. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    6:40 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    There's a Cloudflare plugin?
     
  4. pjrobertson

    pjrobertson New Member

    20
    4
    3
    Feb 7, 2021
    Ratings:
    +8
    Local Time:
    7:40 AM
  5. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:40 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+