在 wp-config.php 添加这段代码: if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $list = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); $_SERVER['REMOT