Prevent Information Disclosure can't resolve

Hi I already add the configuration in NGINX the "Prevent Information Disclosure" but it always appears this kind of issue in the Defender.

Hope you resolve this issue in your end.

  • Paul Kevin

    Hey there Babon ,

    Hope you are well today. Kindly use the following code :

    ## WP Defender - Prevent information disclosure ### Turn off directory indexing
    autoindex off;
    
    # Deny access to htaccess and other hidden files
    location ~ /\. {
      deny  all;
    }
    
    # Deny access to wp-config.php file
    location = /wp-config.php {
      deny all;
    }
    
    # Deny access to revealing or potentially dangerous files in the /wp-content/ directory (including sub-folders)
    location ~* ^/wp-content/.*\.(txt|md|exe|sh|bak|inc|pot|po|mo|log|sql)$ {
      deny all;
    }
    ## WP Defender - End ##

    This will be fixed in the next version.

    Warm Regards
    Paul Kevin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.