只需一步,快速开始
location / { if ( $args ~ “mosConfig_[a-zA-Z_]{1,21}(=|\%3d)” ) {set $args “”; rewrite ^.*$ http://$host/index.php last; return 403;} if ( $args ~ “base64_encode.*\(.*\)”) {set $args “”; rewrite ^.*$ http://$host/index.php last; return 403;} if ( $args ~ “(\<|%3C).*script.*(\>|%3E)”) {set $args “”; rewrite ^.*$ http://$host/index.php last; return 403;} if ( $args ~ “GLOBALS(=|\[|\%[0-9A-Z]{0,2})”) {set $args “”; rewrite ^.*$ http://$host/index.php last; return 403;} if ( $args ~ “_REQUEST(=|\[|\%[0-9A-Z]{0,2})”) {set $args “”; rewrite ^.*$ http://$host/index.php last; return 403;} if (!-e $request_filename) { rewrite (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ /index.php last; break;} }
举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2024-6-14 22:17 , Processed in 0.063890 second(s), 9 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.