• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question WPToolkit Block access to potentially sensitive files

Dmytro

Basic Pleskian
Server operating system version
CloudLinux 8.8
Plesk version and microupdate number
18.0.61 #5
Hi. WPToolkit has this option here:

UjXIBol.png


Once it is enabled, nginx vhost configuration file be appended with this rule:

Code:
# "Block access to potentially sensitive files"
    # To remove this rule, revert this security measure on each WordPress installation on this domain
    location ~* ".*\.(?:psd|log|cmd|exe|bat|csh|ini|sh)$" {
        return 403;
    }

In this case it blocks even local requests to .user.ini files that is could be used for different purposes , for example this file used by WordFence firewall
 
It blocks direct access to these files for remote requests. But it does not prohibits the usage of these files. The WordFence firewall should still function if this rule is enabled.
 
I thought it's wordfence because of this log entry (get request from server ip where site is hosted)

o0huWvH.png
 
.user.ini should not be a requirement by Wordfence. If specific webspace configurations are required, these can also be set in the panel's GUI.
 
@Dmytro the errors shown on the log of your screenshot are not caused by the "Block access to potentially sensitive files" option from the WP toolkit. (Because in that case the errors would get logged in the Nginx logs.) Instead these errors are (most likely) caused by the .htaccess configuration from WordFence, which blocks access the .user.ini file too. When the WordFence firewall scan runs, it checks if this file is file isn't accessible. That's why it shows up in your logs with the IP from the server.
 
@Dmytro the errors shown on the log of your screenshot are not caused by the "Block access to potentially sensitive files" option from the WP toolkit. (Because in that case the errors would get logged in the Nginx logs.) Instead these errors are (most likely) caused by the .htaccess configuration from WordFence, which blocks access the .user.ini file too. When the WordFence firewall scan runs, it checks if this file is file isn't accessible. That's why it shows up in your logs with the IP from the server.
thanks, looks like it's best answer!
 
Back
Top