Config.ini.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ; <?php die(); ?>
  2. ; PHPIDS Config.ini
  3. ; General configuration settings
  4. [General]
  5. ; basic settings - customize to make the PHPIDS work at all
  6. filter_type = xml
  7. base_path = /full/path/to/IDS/
  8. use_base_path = false
  9. filter_path = default_filter.xml
  10. tmp_path = tmp
  11. scan_keys = false
  12. ; in case you want to use a different HTMLPurifier source, specify it here
  13. ; By default, those files are used that are being shipped with PHPIDS
  14. HTML_Purifier_Path = vendors/htmlpurifier/HTMLPurifier.auto.php
  15. HTML_Purifier_Cache = vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer
  16. ; define which fields contain html and need preparation before
  17. ; hitting the PHPIDS rules (new in PHPIDS 0.5)
  18. html[] = POST.__wysiwyg
  19. ; define which fields contain JSON data and should be treated as such
  20. ; for fewer false positives (new in PHPIDS 0.5.3)
  21. json[] = POST.__jsondata
  22. ; define which fields shouldn't be monitored (a[b]=c should be referenced via a.b)
  23. exceptions[] = GET.__utmz
  24. exceptions[] = GET.__utmc
  25. ; you can use regular expressions for wildcard exceptions - example: /.*foo/i
  26. ; PHPIDS should run with PHP 5.1.2 but this is untested - set
  27. ; this value to force compatibilty with minor versions
  28. min_php_version = 5.1.6
  29. ; If you use the PHPIDS logger you can define specific configuration here
  30. [Logging]
  31. ; file logging
  32. path = tmp/phpids_log.txt
  33. ; email logging
  34. ; note that enabling safemode you can prevent spam attempts,
  35. ; see documentation
  36. recipients[] = test@test.com.invalid
  37. subject = "PHPIDS detected an intrusion attempt!"
  38. header = "From: <PHPIDS> info@php-ids.org"
  39. envelope = ""
  40. safemode = true
  41. urlencode = true
  42. allowed_rate = 15
  43. ; database logging
  44. wrapper = "mysql:host=localhost;port=3306;dbname=phpids"
  45. user = phpids_user
  46. password = 123456
  47. table = intrusions
  48. ; If you would like to use other methods than file caching you can configure them here
  49. [Caching]
  50. ; caching: session|file|database|memcached|none
  51. caching = file
  52. expiration_time = 600
  53. ; file cache
  54. path = tmp/default_filter.cache
  55. ; database cache
  56. wrapper = "mysql:host=localhost;port=3306;dbname=phpids"
  57. user = phpids_user
  58. password = 123456
  59. table = cache
  60. ; memcached
  61. ;host = localhost
  62. ;port = 11211
  63. ;key_prefix = PHPIDS