|
Please help: How to Change / Remove HTTP response headers conditionally bas: msg#00121apache.mod-security.user
Hi,
I would like to know
if it's is possible to change/remove HTTP response headers conditionally
using mod_security.
For instance, if a
"User-Agent" contains Mozilla*, remove HTTP header
ContentLength
I've configured the
following rules:
SecRule
REQUEST_HEADERS "User Agent: Mozilla*" "log,phase:1,chain"
SecRule RESPONSE_HEADERS "@rx s/Content-Length://g" "log, phase:3" This does not seem
to be working. Any tips and ideas are most welcome.
Cheers,
Felix
Faassen
This e-mail message contains information which is confidential and may be privileged. It is intended for use by the addressee only. If you are not the intended addressee, we request that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s), without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom N.V., TomTom International BV or any other company belonging to the TomTom group of companies will not be liable for damage relating to the communication by e-mail of data, documents or any other information. Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________ mod-security-users mailing list mod-security-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/mod-security-users |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Outcome of source compile of mod sec 2, apache 2.0.59 freebsd ports: 00121, Dan Rossi |
|---|---|
| Next by Date: | Re: Please help: How to Change / Remove HTTPresponse headers conditionally based on request headers: 00121, Ofer Shezaf |
| Previous by Thread: | Outcome of source compile of mod sec 2, apache 2.0.59 freebsd portsi: 00121, Dan Rossi |
| Next by Thread: | Re: Please help: How to Change / Remove HTTPresponse headers conditionally based on request headers: 00121, Ofer Shezaf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |