Config.ini 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ; PHPIDS Config.ini
  2. ; General configuration settings
  3. ; !!!DO NOT PLACE THIS FILE INSIDE THE WEB-ROOT IF DATABASE CONNECTION DATA WAS ADDED!!!
  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. exceptions[] = REQUEST.__utmz
  26. exceptions[] = REQUEST.__utmc
  27. exceptions[] = REQUEST.__gads
  28. exceptions[] = COOKIE.__utmz
  29. exceptions[] = COOKIE.__utmc
  30. exceptions[] = COOKIE.__gads
  31. exceptions[] = REQUEST.ZP_CAL
  32. exceptions[] = COOKIE.ZP_CAL
  33. ; PHPIDS should run with PHP 5.1.2 but this is untested - set
  34. ; this value to force compatibilty with minor versions
  35. min_php_version = 5.1.6
  36. ; If you use the PHPIDS logger you can define specific configuration here
  37. [Logging]
  38. ; file logging
  39. path = tmp/phpids_log.txt
  40. ; email logging
  41. ; note that enabling safemode you can prevent spam attempts,
  42. ; see documentation
  43. recipients[] = test@test.com.invalid
  44. subject = "PHPIDS detected an intrusion attempt!"
  45. header = "From: <PHPIDS> info@php-ids.org"
  46. envelope = ""
  47. safemode = true
  48. urlencode = true
  49. allowed_rate = 15
  50. ; database logging
  51. wrapper = "mysql:host=localhost;port=3306;dbname=phpids"
  52. user = phpids_user
  53. password = 123456
  54. table = intrusions
  55. ; If you would like to use other methods than file caching you can configure them here
  56. [Caching]
  57. ; caching: session|file|database|memcached|none
  58. caching = file
  59. expiration_time = 600
  60. ; file cache
  61. path = tmp/default_filter.cache
  62. ; database cache
  63. wrapper = "mysql:host=localhost;port=3306;dbname=phpids"
  64. user = phpids_user
  65. password = 123456
  66. table = cache
  67. ; memcached
  68. ;host = localhost
  69. ;port = 11211
  70. ;key_prefix = PHPIDS