The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable mod_security rule globally

Discussion in 'Security' started by Armitage318, Nov 27, 2013.

  1. Armitage318

    Armitage318 Member

    Joined:
    Jun 4, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hi,

    how can I exclude specific rule globally on a WHM server?
    I tried including this in modsec2.user.conf:

    Code:
    SecRuleRemoveById 340147 
    SecRuleRemoveById 340148
    
    without success.
    Thankyou!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. Armitage318

    Armitage318 Member

    Joined:
    Jun 4, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hi Infopro,

    this means that it's impossible to do this manually?
    Thank you
     
  4. Armitage318

    Armitage318 Member

    Joined:
    Jun 4, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
  5. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Where in modsec2.user.conf did you include that?
     
  6. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    940
    Likes Received:
    55
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    The LocationMatch syntax should work fine.
     
Loading...

Share This Page