mod_security and WordPress

I just upgraded this blog to the latest version of WordPress, and I noticed that I wasn’t able to post. Got 403 Forbidden error message.

Checking mod_security’s log file, I saw these messages:

POST /wp-admin/post.php HTTP/1.1
mod_security-message: Access denied with code 403. Invalid cookie format: Cookie value is missing #1
mod_security-action: 403

After googling around, turned out it’s because of a setting in a mod_security.
Basically, you’ll need to replace SecFilterCheckCookieFormat to SecFilterNormalizeCookies in your mod_security config.

After doing this and restarting Apache, I can post again to WordPress.

Hope this helps somebody else with similar problem.

36 thoughts on “mod_security and WordPress

  1. Thanks, I’ve a few ideas to make this blog more useful, and this is the first step. Hopefully I’ll be able to implement the changes faster.

  2. That’s good news that you eventually got it sorted. I’m sure someone else will come across the same problem, this should help them a lot.

  3. I had similar issues when I upgraded, but I think I’ve got them all sorted out now. First time I’ve had issues with an upgrade. Thanks for the help

  4. I ran into this exact same problem and was searching high and low. I thought I was going to have to go back to my previous version. Anyhow – your solution saved me a lot of hassle – thanks!

  5. There’s a very amusing thread about this over at Scene.org’s flames forum – best quote “But it is kind of flattering for them to think that the demoscene coders now have found a way to pack 1 whole tv series episode into a ~30KB file 🙂 “.

  6. Hi. I am using Plesk and I cannot find any place to edit the .htaccesss and make these changes. Can you please give me further instruction?
    I am having this same problem but cannot correct it.
    Thanks for your help in advance!

  7. I’ve had the same problem with y WordPress. Thanks to you, now I’m able to post again 🙂

  8. Thanks for this. I also had issues, was very frustrating but then I found your post and it solved it.

    Many thanks.

  9. Dsquared2 Jackets can offer you the best service and best selection of stylish dsquared2 jackets, Dsquared2 Jeans and shoes. You can stay right where you are and continue shopping at Dsquared2 online shop. Top quality, best price, complete package, quick response, safe and fast shipping, professional service. Are you like Cheap Dsquared2 products, so you can think about our Dsquared2 online shop. If you wear the shoes, you will look very confident and generous. Dsquared2 store shoes are at competitive and discounted prices.

    Dsquared2 T-shirt is the latest popular with decorative design, unique style and very fashionable. Once you get it, you will find that it is worth paying. Its careful design style and fashionable brilliant appearance is a notable feature. Dsquared2 belts is the coolest effect and would not look bloated fashion items, from autumn to winter has been wearing. Now the cool and sexy dsquared jeans absorbed the tradition and retro elements, not only can easily create stylish, personalized, and easy to integrate with the trend.

    Dsquared2 Belts is also designed to absorb the elements of knitting patterns and some adorned with fur collar office or of patent leather is also a sense of the fabric. Good in the winter sun, when closing the body but stylish Dsquared2 jeans would be a good choice. Dsquared2 jeans the fit, the cut, the way in which they flatter your leg–amazing. Dsquared2 clothing really are a do the responsibility of art. They should understand that it’s not just rich-ass women shopping here at Christiands Dsqaured2 jeans Sale.

    Some of us will actually desire for gorgeous shoes and it’s scary to make this kind of purchase Dsquared2 jeans men hough when it comes down to it, i do know they are not meant being walked all over in much, but are so amazing and really feel so amazing on, I really enjoy getting just like a good offer use out them as possible! i’d recommend steering for just about any gorgeous Dsquared2 men ought for you may be steering to splurge on these puppies, just because the way the Cartier glasses are made is so amazingly special.

Leave a Reply

Your email address will not be published. Required fields are marked *