• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Block user-agent and stop logging

Azurel

Silver Pleskian
Server operating system version
AlmaLinux 8.10
Plesk version and microupdate number
Plesk Obsidian 18.0.74#2
I have a non-standard User-Agent (app/scrapper) that sends thousands of requests in few seconds, which severely bloats my access_ssl_log in different domains. Is here a way to prevent/block this in Plesk? The block must target the application agent, not the originating user IP. The user IP as website visitor is welcome.

I use this rule in a global Apache config file (/etc/httpd/conf.d/block_useragents.conf) to immediately stop the requests with a non-error status and set a variable:
<Directory "/var/www/vhosts/">
RewriteEngine On
RewriteOptions inherit

RewriteCond %{HTTP_USER_AGENT} ^botname [NC]
RewriteRule .* - [R=204,L,E=nolog:1]
</Directory>

How I can instruct Plesk to skip all logging in "access_ssl_log" when the custom variable nolog is present?
 
Back
Top