• RezaY

    (@mohammad983)


    How to block them folder in ngnix ?
    I check my site in this site
    and every one can see my plugins folder and themes’s folders!
    How can I solved that?
    I used these codes but it seems it doesn’t work at all.

    location ~* /(?:uploads|files)/.*.php$ {
    deny all;
    }
    location ~* /wp-includes/.*.php$ {
    deny all;
    access_log off;
    log_not_found off;
    }
    location ~* /wp-content/.*.php$ {
    deny all;
    access_log off;
    log_not_found off;
    }
    location ~* /(?:uploads|files)/.*.php$ {
    deny all;
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to block them folder in ngnix’ is closed to new replies.