Nginx 限制访问:仅允许包含 'qyuc' 的 User Agent 访问
location / { map $http_user_agent $allow_access { default 0; '~*qyuc' 1; } if ($allow_access = 0) { return 403; } # other configuration for the location block }
原文地址: https://www.cveoy.top/t/topic/nwAR 著作权归作者所有。请勿转载和采集!