Nginx禁止UA

By | 2022-01-16

Add the code in server

if ($http_user_agent ~* (Python|MJ12bot|Trident|GoogleBot)) {
    return 404;
}