Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    16,585
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Armitage318

    Armitage318 Member

    Joined:
    Jun 4, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    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:
    51
    cPanel Access Level:
    DataCenter Provider
  5. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Where in modsec2.user.conf did you include that?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    1,011
    Likes Received:
    89
    Trophy Points:
    78
    cPanel Access Level:
    DataCenter Provider
    The LocationMatch syntax should work fine.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice