ModSecurity supplies an array of request and response filtering rules and other security features to the Apache HTTP Server. ModSecurity is an open source web application layer firewall.
Questions tagged [mod-security]
344 questions
1
vote
1 answer
Apache error_log filled with modsec blocks
Ever since I enabled Apache modsecurity I've been checking the logs and been seeing the following constantly like 24/7:
[Wed Jun 25 12:40:07 2014] [error] [client 112.215.65.61] ModSecurity: Access denied with code 501 (phase 2). Pattern match…

Ivan
- 893
- 2
- 9
- 23
1
vote
2 answers
ModSecurity Error Entries
Recently, I was passed some error logs to take a look into, since we'd had some network spikes recently. However, I've never worked with modsecurity (I'm a programmer just doing this since we don't have a real sysadmin), and something alarming came…

waiwai933
- 166
- 1
- 2
- 15
1
vote
0 answers
Curl Sourced DDoS: How to detect it & how to stop?
Okay, an Ubuntu server I manage fell victim to a DDoS attack today. Usually this is unpleasant but not that big a deal. A few high server load moments & then it passes. Today was clearly different. For the record, I have years of server attack…

Giacomo1968
- 3,542
- 27
- 38
1
vote
2 answers
mod_security configuration issue: Error parsing actions: Unknown action: ver
I am trying to install / configure mod-sec using this tutorial, which uses the OWASP ModSecurity Core Rule Set. However when I go to restart apache, I get the following error:
Syntax error on line 53 of…

Bob Flemming
- 1,245
- 3
- 14
- 17
1
vote
1 answer
How do I handle apache2 modsecurity2 warnings like Match of "rx ^OPTIONS$" against "REQUEST_METHOD" required?
After upgrade from squeeze to wheezy I get loads of these messages in my apache errorlog when I open a webpage on myserver, (changed to myserver.de here):
[Sat Oct 19 01:06:21 2013] [error] [client 213.239.220.106] ModSecurity: Warning. Match of "rx…

rubo77
- 2,469
- 4
- 34
- 66
1
vote
0 answers
apache DirectoryMatch matching filenames
I have the following code in my security.conf file of apache
Options -ExecCGI
php_flag engine off
This is to prevent php execution…

Virendra
- 111
- 4
1
vote
2 answers
modsecurity whitelist to allow file downloads?
I have a site that has modsecurity enabled but I am receiving 403 Forbidden when trying to access PDF documents on the server through the web site. Is there a way to whitelist pdf files to allowed to be served through the site or a possible…

jeffci
- 121
- 1
- 5
1
vote
1 answer
mod_security to Inspect Post Variables
Can mod_security be used to inspect post variables? It looks like I can through turning SecRequestBodyAccess. I would like to check the username POST field from a form in wp-login.php. If it's value is "admin", I want to return an error and block…

Jared Pomranky
- 11
- 4
1
vote
0 answers
short Apache outages (VPS, ModSecurity)
I have a problem with my site recently hosted at Liquidweb, none of their techs seems to be able to solve this issue even after days. Was hoping I could get some help here.
Occasionally, my site's HTTP will not respond - usually 2-3 times a day. It…

user173106
- 11
- 1
1
vote
1 answer
Apache vhost-specific logging
I have the following apache setting (in conf.d/owasp-modsecurity.conf):
SecAuditLog "/var/www/vhosts/${lowercase:%{SERVER_NAME}}/statistics/logs/modsec_audit.log"
When I do httpd -t I get the following error:
Syntax error on line 15 of…

Christian
- 466
- 5
- 23
1
vote
1 answer
Limit mod_security rule to one vhost only
I run several domains (via vhosts) with the same apache installation. Some domains require different mod_security rules than the others. In a seperate exceptions.conf file I collect all those rules and have this syntax:
…

powtac
- 639
- 2
- 6
- 19
1
vote
2 answers
Blocking bad bots
I found this script and was wondering if this is just overkill and even worth using?
Is it better for me to just use mod_security?
# Generated using http://solidshellsecurity.com services
# Begin block Bad-Robots from robots.txt
User-agent:…

Tiffany Walker
- 6,681
- 14
- 56
- 82
1
vote
1 answer
Mod_security2 and clamav to catch malicious files on upload
Is there a clear documentation to describe the solution?
It's very common and also necessary.

smhnaji
- 619
- 2
- 11
- 24
1
vote
1 answer
How do I include a rule set with ModSecurity on IIS?
I'm using ModSecurity 2.7.1 on IIS 7.5 / Windows 2008 R2.
I've reference my base set up conf file in my Web.Staging.config of a site like so:
How do I…

autonomatt
- 133
- 5
1
vote
3 answers
ModSecurity compile error on nginx
I'm trying to install ModSecurity on nginx with the following instructions :
wget https://github.com/SpiderLabs/ModSecurity/archive/master.zip
unzip master
cd ModSecurity-master
./autogen.sh
./configure --enable-standalone-module
And i got the…

user146481
- 19
- 1
- 3