zyk198500 发表于 2018-12-19 12:04:27

PHP***检测系统—PHPIDS

PHP***检测系统—PHPIDS
  部署要求:
  PHP5.1.2 or better
  Apache
  mod_rewrite
  安装步骤:
  1、下载phpids   https://phpids.org/downloads/
  2、解压phpids至网站根目录
  3、如果无法解压至根目录可使用mod_rewrite
  RewriteEngine On
  RewriteCond %{REQUEST_URI} ^/phpids(.*)
  RewriteRule ^(.+)$ –
  配置使用:
  1、编辑config/config.ini.php自定义配置。

[*]  
[*]  filter_type = xml
[*]  use_base_path = false
[*]  filter_path = default_filter.xml
[*]  tmp_path= tmp
[*]  scan_keys= false
[*]  HTML_Purifier_Path = IDS/vendors/htmlpurifier/HTMLPurifier.auto.php
[*]  HTML_Purifier_Cache = IDS/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer
[*]  html[] = __wysiwyg
[*]  json[]= __jsondata
[*]  exceptions[]= __utmz
[*]  exceptions[] = __utmc
[*]  min_php_version = 5.1.2
[*]  
[*]  path = tmp/phpids_log.txt
[*]  recipients[] = admin@myhack58.com
[*]  subject = “PHPIDS detected an intrusion attempt!”
[*]  header = “From:noreply@domain.com”
[*]  envelope = “”
[*]  safemode = true
[*]  allowed_rate = 15
[*]
[*]  
[*]  caching = file
[*]  expiration_time = 600
[*]  path = tmp/default_filter.cache
  2、启用phpids,可以将phpids的加载脚本写入一个单独的php文件,然后通过php.ini中的auto_prepend_file选项自动加载。
  ids.php

[*]  
  2、编辑php.ini,加入以下内容:

[*]  auto_prepend_file /full/path/to/ids.php
  转载:http://www.myhack58.com/Article/html/3/8/2014/46440.htm

页: [1]
查看完整版本: PHP***检测系统—PHPIDS