PHP powers the majority of e-commerce websites. Using Node.js? See our Node.js integration guide. PHP — WordPress, WooCommerce, OpenCart, Magento, and countless custom stores. If your site runs on PHP, this guide explains how to deploy WUXIANG SHIELD's domain protection in your environment.
Integration Methods
Method 1: Code Include (Recommended)
Add a single line at the very top of your PHP entry file (usually index.php):
<?php
require_once '/path/to/wuxiangdun/filter.php';
// Your existing site code below...
This line runs WUXIANG SHIELD's filter before any page content is generated. Bots get safe content; real users pass through transparently.
Method 2: Web Server Layer
For those who prefer not to modify PHP code, configure Apache or Nginx to route requests through WUXIANG SHIELD's filter layer first.
Framework Compatibility
- WordPress/WooCommerce: Include in
wp-config.phpor theme'sfunctions.php - Laravel: Integrate as Middleware
- OpenCart/Magento: Include in entry file
Performance
WUXIANG SHIELD's PHP filter executes in under 50 milliseconds per request, with built-in high-performance caching and intelligent visitor recognition. Impact on site performance is negligible. Get started with WUXIANG SHIELD.