• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Question Allow specific Content types in Mod Security

tbachner

New Pleskian
Server operating system version
Ubuntu 22.04.3 LTS
Plesk version and microupdate number
18.0.55 Update #2
When I activate ModSecurity I have a problem with content types:

[msg "COMODO WAF: Request content type is not allowed by policy. Please update file userdata_wl_content_type.||app.domain.de|F|2"] [data "TX:0=application/merge-patch+json"]

Where I find die file userdata_wl_content_type to add the content type application/merge-patch+json?
 
Ok. I found the file userdata_wl_content_type in the folder etc/apache2/modsecurity.d/rule/comodo_free. But I change this file, it always gets overwritten with default rules. How I can prevent this?
 
I've checked on a server here and it seems the files are not overwritten. Where did you see that they are?
 
I have the same problem - `/etc/apache2/modsecurity.d/rules/comodo_free/userdata_wl_content_type` is periodically reset to some factory default, neutering my changes.
 
Back
Top