Title: Inline and Defer CSS | Mod_Security Error
Last modified: August 30, 2019

---

# Inline and Defer CSS | Mod_Security Error

 *  Resolved [juanavall](https://wordpress.org/support/users/juanavall/)
 * (@juanavall)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/)
 * Hi guys,
 * I am having the following error message when I try to enter the critical CSS 
   to the “Inline and Defer CSS” field:
 * Not Acceptable! An appropriate representation of the requested resource could
   not be found on this server. This error was generated by Mod_Security
 * I hope you can help.
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finline-and-defer-css-mod_security-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/#post-11883655)
 * that’s probably due to a false positive against “directory traversal attacks”,
   edit the critical CSS to change e.g. `wp-content/theme/css/../images/` into `
   wp-content/theme/images/` and all should be fine.
 * hope this helps,
    frank
 *  Thread Starter [juanavall](https://wordpress.org/support/users/juanavall/)
 * (@juanavall)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/#post-11883812)
 * Hi Frank, thanks for your quick response.
 * That path does not exist within the critical CSS.
    What I copy next is the only
   thing that looks like:
 * @font-face{font-family:’nm-font’;src:url(//mysite.com/wp-content/themes/savoy/
   assets/css/font-icons/theme-icons/fonts/nm-font.ttf?pm8hp9) format(‘truetype’),
   url(//mysite.com/wp-content/themes/savoy/assets/css/font-icons/theme-icons/fonts/
   nm-font.woff?pm8hp9) format(‘woff’),url(//mysite.com/wp-content/themes/savoy/
   assets/css/font-icons/theme-icons/fonts/nm-font.svg?pm8hp9#nm-font) format(‘svg’);
   font-weight:400;font-style:normal}
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/#post-11883965)
 * It was just an example, the thing is mod_security doesn’t like `../` being submitted
   in HTML forms. If you don’t have any of those in the critical CSS you’ll have
   to (have someone) check the mod_security logs for info on what other rule got
   triggered and based on that we can see if it can be fixed by tweaking the critical
   CSS.
 *  [Zidan Pragata](https://wordpress.org/support/users/zidanpragata/)
 * (@zidanpragata)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/#post-11884104)
 * [@juanavall](https://wordpress.org/support/users/juanavall/)
    remove this url
   on your css : ?pm8hp9 ?pm8hp9#nm-font
 *  Thread Starter [juanavall](https://wordpress.org/support/users/juanavall/)
 * (@juanavall)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/#post-11884356)
 * I removed both strings and “../” and now it seems to work properly.
 * Thank you [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/)
   and [@zidanpragata](https://wordpress.org/support/users/zidanpragata/) for your
   help!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/#post-11884398)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Inline and Defer CSS | Mod_Security Error’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/inline-and-defer-css-mod_security-error/#post-11884398)
 * Status: resolved