|
|
| <prev next> |
Choosing A Webhost: |
1.9b4 SecFilterRemove question: msg#00000apache.mod-security.user
Hi, folks. I've been playing with the latest-and-greatest and trying to apply it to a situation I'm dealing with on one of my servers. Specifically, I have a multi-purpose webserver, part of which hosts a weblog. Whereas, for the majority of the web server, I can afford to have relatively tight input filtering, it would be nice to be less restrictive for the weblog. To wit, I'm trying the following in my httpd.conf: <IfModule mod_security.c> # Defaults SecFilterEngine DynamicOnly SecFilterScanPOST On SecFilterInheritance On SecFilterCheckCookieFormat On SecFilterNormalizeCookies On SecFilterCheckURLEncoding On SecFilterCheckUnicodeEncoding On SecFilterForceByteRange 32 122 SecFilterSelective "ARGS" "!^[A-Za-z0-9.&/?@_%=:;, *+-]*$" id:1001 SecFilterSelective COOKIES_VALUES "!^[A-Za-z0-9&./?@_%=:;, !-]*$" id:1002 </IfModule> Ideally, what I'd like to add is this: <Location ~ "^/blog/"> SecFilterRemove 1001 </Location> Now, ignoring for the moment the wisdom of turning off input validation altogether (I'll have another post on that later ;-), I'm wondering if this construct should work the way I expect. Reason is, with this configuration, I am stymied by the exact SecFilterSelective statement I'm trying to un-inherit: [01/Oct/2005:22:23:35 --0500] [mysite/sid#2193f8][rid#40cb88][/blog/oncall/][1] Access denied with code 406. Pattern match "!^[A-Za-z0-9.&/?@_%=:;, *+-]*$" at POST_PAYLOAD [id "1001"] I have read the note in the 1.9b4 docs about Apache contexts and how they're merged, etc., but I'm thinking I have a simple enough configuration that what I have above should work. Obviously I'm wrong :-) Can anyone on the list help set me straight? Much thanks in advance, Erick. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Next by Date: | whitelisting XSS/HTML-injection defense, Rude Yak |
|---|---|
| Next by Thread: | Re: 1.9b4 SecFilterRemove question, Ivan Ristic |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |