Safe3-uusec-waf/rasp/php/pidm.h
UUSEC Technology e66cca6014 v7.0.0
### Feature Updates

**Interface & Management**

- Redesigned main program and management interface with improved aesthetics and usability, supports UI language switching (English/Chinese)
- Added Rule Collections functionality: Create custom rule templates for batch configuration
- Introduced whitelist rules that terminate further rule matching upon success
- UUSEC WAF Rules API intelligent suggestions during advanced rule editing:ml-citation
- New plugin management supporting hot-reloaded plugins to extend WAF capabilities

**Protocol & Optimization**

- Supports streaming responses for continuous data push (e.g., LLM stream outputs)
- Enables Host header modification during proxying for upstream service access
- Search engine validation: `waf.searchEngineValid(dns,ip,ua)` prevents high-frequency rules from affecting SEO indexing
- Interception log report generation (HTML/PDF exports)
- Automatic rotation of UUSEC WAF error/access logs to prevent performance issues

**Security & Infrastructure**

- Expanded free SSL certificate support: HTTP-01 & DNS-01 verification across 50+ domain providers
- Customizable advanced WAF settings: HTTP2, GZIP, HTTP Caching, SSL protocols, etc
- Cluster configuration: Manage UUSEC WAF nodes and ML servers via web UI
2025-07-02 09:47:41 +08:00

53 lines
No EOL
1 KiB
C

#ifndef PHP_PIDM_H
#define PHP_PIDM_H
extern zend_module_entry pidm_module_entry;
#define phpext_pidm_ptr &pidm_module_entry
#ifdef PHP_WIN32
#define PHP_PIDM_API __declspec(dllexport)
#else
#define PHP_PIDM_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
#define PHP_PIDM_VERSION "1.0.3"
#if PHP_VERSION_ID > 70000
# if PHP_VERSION_ID < 70100
# define PHP_7_0 1
# define PHP_7_1 0
# elif PHP_VERSION_ID < 70200
# define PHP_7_0 0
# define PHP_7_1 1
# else
# error "Unsupported PHP Version ID:" PHP_VERSION_ID
# endif
#else
# error "Unsupported PHP Version ID:" PHP_VERSION_ID
#endif
typedef zval* pidm_free_op;
PHP_MINIT_FUNCTION(pidm);
PHP_MSHUTDOWN_FUNCTION(pidm);
PHP_RINIT_FUNCTION(pidm);
PHP_RSHUTDOWN_FUNCTION(pidm);
PHP_MINFO_FUNCTION(pidm);
ZEND_BEGIN_MODULE_GLOBALS(pidm)
zend_bool enable;
int level;
zend_bool defence;
ZEND_END_MODULE_GLOBALS(pidm)
#ifdef ZTS
#define PIDM_G(v) TSRMG(pidm_globals_id, zend_pidm_globals *, v)
#else
#define PIDM_G(v) (pidm_globals.v)
#endif
#endif /* PHP_PIDM_H */