Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

1.9b4 SecFilterRemove question: msg#00000

apache.mod-security.user

Subject: 1.9b4 SecFilterRemove question

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>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation