-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use HTML_Purifier from composer instead of the one included with the …
…IDS package
- Loading branch information
Showing
377 changed files
with
89 additions
and
32,520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,89 @@ | ||
; <?php die(); ?> | ||
|
||
; PHPIDS Config.ini | ||
|
||
; General configuration settings | ||
|
||
|
||
[General] | ||
|
||
; basic settings - customize to make the PHPIDS work at all | ||
filter_type = xml | ||
base_path = /full/path/to/IDS/ | ||
use_base_path = false | ||
filter_path = default_filter.xml | ||
tmp_path = tmp | ||
scan_keys = false | ||
; in case you want to use a different HTMLPurifier source, specify it here | ||
; By default, those files are used that are being shipped with PHPIDS | ||
HTML_Purifier_Path = vendors/htmlpurifier/HTMLPurifier.auto.php | ||
HTML_Purifier_Cache = vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer | ||
; define which fields contain html and need preparation before | ||
; hitting the PHPIDS rules (new in PHPIDS 0.5) | ||
;html[] = POST.__wysiwyg | ||
; define which fields contain JSON data and should be treated as such | ||
; for fewer false positives (new in PHPIDS 0.5.3) | ||
;json[] = POST.__jsondata | ||
|
||
; define which fields shouldn't be monitored (a[b]=c should be referenced via a.b) | ||
exceptions[] = GET.__utmz | ||
exceptions[] = GET.__utmc | ||
|
||
; you can use regular expressions for wildcard exceptions - example: /.*foo/i | ||
|
||
; PHPIDS should run with PHP 5.1.2 but this is untested - set | ||
; this value to force compatibilty with minor versions | ||
min_php_version = 5.1.6 | ||
|
||
; If you use the PHPIDS logger you can define specific configuration here | ||
|
||
[Logging] | ||
|
||
; file logging | ||
path = tmp/phpids_log.txt | ||
|
||
; email logging | ||
|
||
; note that enabling safemode you can prevent spam attempts, | ||
; see documentation | ||
recipients[] = [email protected] | ||
subject = "PHPIDS detected an intrusion attempt!" | ||
header = "From: <PHPIDS> [email protected]" | ||
envelope = "" | ||
safemode = true | ||
urlencode = true | ||
allowed_rate = 15 | ||
|
||
; database logging | ||
|
||
wrapper = "mysql:host=localhost;port=3306;dbname=phpids" | ||
user = phpids_user | ||
password = 123456 | ||
table = intrusions | ||
|
||
; If you would like to use other methods than file caching you can configure them here | ||
|
||
[Caching] | ||
|
||
; caching: session|file|database|memcached|none | ||
caching = file | ||
expiration_time = 600 | ||
|
||
; file cache | ||
path = tmp/default_filter.cache | ||
|
||
; database cache | ||
wrapper = "mysql:host=localhost;port=3306;dbname=phpids" | ||
user = phpids_user | ||
password = 123456 | ||
table = cache | ||
|
||
; memcached | ||
;host = localhost | ||
;port = 11211 | ||
;key_prefix = PHPIDS | ||
; <?php die(); ?> | ||
|
||
; PHPIDS Config.ini | ||
|
||
; General configuration settings | ||
|
||
|
||
[General] | ||
|
||
; basic settings - customize to make the PHPIDS work at all | ||
filter_type = xml | ||
|
||
base_path = /full/path/to/IDS/ | ||
use_base_path = false | ||
|
||
filter_path = default_filter.xml | ||
tmp_path = tmp | ||
scan_keys = false | ||
|
||
; in case you want to use a different HTMLPurifier source, specify it here | ||
; By default, those files are used that are being shipped with PHPIDS | ||
HTML_Purifier_Path = [civicrm.vendor]/ezyang/htmlpurifier/library/HTMLPurifier.auto.php | ||
HTML_Purifier_Cache = [civicrm.vendor]/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer | ||
|
||
; define which fields contain html and need preparation before | ||
; hitting the PHPIDS rules (new in PHPIDS 0.5) | ||
;html[] = POST.__wysiwyg | ||
|
||
; define which fields contain JSON data and should be treated as such | ||
; for fewer false positives (new in PHPIDS 0.5.3) | ||
;json[] = POST.__jsondata | ||
|
||
; define which fields shouldn't be monitored (a[b]=c should be referenced via a.b) | ||
exceptions[] = GET.__utmz | ||
exceptions[] = GET.__utmc | ||
|
||
; you can use regular expressions for wildcard exceptions - example: /.*foo/i | ||
|
||
; PHPIDS should run with PHP 5.1.2 but this is untested - set | ||
; this value to force compatibilty with minor versions | ||
min_php_version = 5.1.6 | ||
|
||
; If you use the PHPIDS logger you can define specific configuration here | ||
|
||
[Logging] | ||
|
||
; file logging | ||
path = tmp/phpids_log.txt | ||
|
||
; email logging | ||
|
||
; note that enabling safemode you can prevent spam attempts, | ||
; see documentation | ||
recipients[] = [email protected] | ||
subject = "PHPIDS detected an intrusion attempt!" | ||
header = "From: <PHPIDS> [email protected]" | ||
envelope = "" | ||
safemode = true | ||
urlencode = true | ||
allowed_rate = 15 | ||
|
||
; database logging | ||
|
||
wrapper = "mysql:host=localhost;port=3306;dbname=phpids" | ||
user = phpids_user | ||
password = 123456 | ||
table = intrusions | ||
|
||
; If you would like to use other methods than file caching you can configure them here | ||
|
||
[Caching] | ||
|
||
; caching: session|file|database|memcached|none | ||
caching = file | ||
expiration_time = 600 | ||
|
||
; file cache | ||
path = tmp/default_filter.cache | ||
|
||
; database cache | ||
wrapper = "mysql:host=localhost;port=3306;dbname=phpids" | ||
user = phpids_user | ||
password = 123456 | ||
table = cache | ||
|
||
; memcached | ||
;host = localhost | ||
;port = 11211 | ||
;key_prefix = PHPIDS |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.