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!

Using mod_sed on both in/out filtering on same site

Discussion in 'Security' started by hlc, Jun 23, 2016.

  1. hlc

    hlc Member

    Joined:
    Feb 10, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm trying to use mod_sed with both input and output filters at the same time. I can only get the output filter on it's own to work:

    <Location "/var/www">
    AddOutputFilter Sed html
    OutputSed "s/123/abc/g"
    OutputSed "s/stuff/ffuts/g"
    </Location>

    I'd like to use an input filter too on the same site:

    <Location "/var/www">
    AddInputFilter Sed html
    InputSed "s/abc/123/g"
    InputSed "s/ffuts/stuff/g"
    </Location>

    ...but only the output filter is being used. In fact, if I activate the input filter, it disables the output filter, so nothing then works.

    I'd appreciate any pointers in getting this to work.

    Thanks
    Henry
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,940
    Likes Received:
    1,819
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide additional details on how you have installed this Apache module, and how you are implementing the custom rules?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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