RubyDubee

  • Archive
  • RSS

Drupal 7 + mod_sec

While developing one of my friend’s website in Drupal 7(this was the first time I have installed Drupal 7 on shared host), My IP Address was being continuously blocked by Mod_Security. So I asked for the logs and found that some rule in Mod_Security (id=950004) is blocking jquery.cookie.js. I googled it and found that many people are having the same issue.
So here is the solution that worked for me(Use this if you don’t want to waste your time fighting with your shared webhost.) :

  1. Rename your jquery.cookie.js to something like jquery-c.js.
  2. You will also need to change the mapping in system.module - find “jquery.cookie” and replace with “jquery-c”.

Hope that will help.

    • #Drupal
    • #mod_sec
    • #Jquery
  • 9 months ago
  • 2
  • Comments
  • Permalink
  • Share
    Tweet

About

I am Pradyumna and You can read my Rubyish Resume (once it is done) to know more about me!

Pages

  • My Rubyish Resume

Twitter

loading tweets…

I Dig These Posts

See more →
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr