LimitRequestBody 307200 LimitRequestFields 200 LimitRequestFieldSiz 10

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
LimitRequestBody 307200
LimitRequestFields 200
LimitRequestFieldSize 1000
LimitRequestLine 4000
RewriteEngine On
RewriteLog logs/ids.log
RewriteLogLevel 2
# the following RewriteRule should be in one line:
RewriteCond %{REQUEST_METHOD} ^{|TRACE|TRACK|DELETE|LINK|UNLINK|OPTION|PUT|PATCH}
RewriteRule .* - [F,L]
RewriteRule \.\.|\.\.\.|\s|\.|\.|\+|\/\/|\[|\]|\;|\~|\#|\%|\^|\(|\)|\{|\}|\?|\,|<|<<|\||\!|>|>>|\@|\*|\` - [F]
RewriteRule /bin|/sbin|/etc|httpd\.conf|access_log|error_log . [F]
# Enable coredumps (THIS IS A SECURITY THREAT)
CoreDumpDirectory /var/www/core