Skip to content

Nginx 配置 ua 判断

nginx
    if ( $http_user_agent ~* "git|wget" ){
        return 301 https://xxxxx.com$request_uri;
    }